We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be9eb76 + dc4871f commit d2102daCopy full SHA for d2102da
modules/utxo-lib/src/bitgo/wallet/Unspent.ts
@@ -256,7 +256,7 @@ export function updateWalletUnspentForPsbt(
256
if ((isZcashOrSegwit || customParams?.skipNonWitnessUtxo) && !input.witnessUtxo) {
257
const { script, value } = toPrevOutput(u, psbt.network);
258
psbt.updateInput(inputIndex, { witnessUtxo: { script, value } });
259
- } else if (!isZcashOrSegwit) {
+ } else if (!isZcashOrSegwit && !customParams?.skipNonWitnessUtxo) {
260
if (!isUnspentWithPrevTx(u)) {
261
throw new Error('Error, require previous tx to add to PSBT');
262
}
0 commit comments