Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "bip174", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/lib/psbt.js", |
@@ -27,9 +27,4 @@ 'use strict'; | ||
function canAdd(currentData, newData) { | ||
return ( | ||
!!currentData && | ||
!!newData && | ||
currentData.witnessUtxo === undefined && | ||
currentData.nonWitnessUtxo === undefined | ||
); | ||
return !!currentData && !!newData && currentData.nonWitnessUtxo === undefined; | ||
} | ||
exports.canAdd = canAdd; |
@@ -46,9 +46,4 @@ 'use strict'; | ||
function canAdd(currentData, newData) { | ||
return ( | ||
!!currentData && | ||
!!newData && | ||
currentData.witnessUtxo === undefined && | ||
currentData.nonWitnessUtxo === undefined | ||
); | ||
return !!currentData && !!newData && currentData.witnessUtxo === undefined; | ||
} | ||
exports.canAdd = canAdd; |
@@ -42,3 +42,3 @@ 'use strict'; | ||
let result = false; | ||
if (!input.nonWitnessUtxo !== !input.witnessUtxo) { | ||
if (input.nonWitnessUtxo || input.witnessUtxo) { | ||
const needScriptSig = !!input.redeemScript; | ||
@@ -45,0 +45,0 @@ const needWitnessScript = !!input.witnessScript; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73093
1899