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.
1 parent 41885bf commit 6344be5Copy full SHA for 6344be5
test/integration/transactions.js
@@ -84,7 +84,7 @@ describe('bitcoinjs-lib (transactions)', function () {
84
85
var txb = new bitcoin.TransactionBuilder(regtest)
86
var data = Buffer.from('bitcoinjs-lib', 'utf8')
87
- var dataScript = bitcoin.script.nullData.output.encode(data)
+ var dataScript = bitcoin.script.nullData.output.encode([data])
88
89
txb.addInput(unspent.txId, unspent.vout)
90
txb.addOutput(dataScript, 1000)
0 commit comments