Browse Source

Add TODO to check the empty buffer behaviour

psbt-support
Luke Childs 6 years ago
parent
commit
aa01475316
  1. 3
      ts_src/transaction_builder.ts

3
ts_src/transaction_builder.ts

@ -113,6 +113,9 @@ export class TransactionBuilder {
const witnessElements = (decompile(finalScriptWitness) as []).map(
chunk => {
if (!chunk) {
// TODO: Check why/if this is needed.
// Do we really want to return <Buffer > instead of <Buffer 00> when `chunk` is 0/0x00/OP_0/OP_FALSE?
// Copied from https://github.com/bitcoinjs/bip174/blob/a00379750b41be799d822d060457a6580b7e41db/src/extract_transaction.js#L42
return Buffer.from([]);
}

Loading…
Cancel
Save