From 6344be50ae7bbab02672d120a1d2bcd695306753 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 30 Apr 2018 10:46:17 +1000 Subject: [PATCH] integration: adhere to new nullData API --- test/integration/transactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/transactions.js b/test/integration/transactions.js index 56ef033..fa79d3c 100644 --- a/test/integration/transactions.js +++ b/test/integration/transactions.js @@ -84,7 +84,7 @@ describe('bitcoinjs-lib (transactions)', function () { var txb = new bitcoin.TransactionBuilder(regtest) var data = Buffer.from('bitcoinjs-lib', 'utf8') - var dataScript = bitcoin.script.nullData.output.encode(data) + var dataScript = bitcoin.script.nullData.output.encode([data]) txb.addInput(unspent.txId, unspent.vout) txb.addOutput(dataScript, 1000)