tests: use safe-buffers throughout
This commit is contained in:
parent
aeb0312d63
commit
f1ab151c31
20 changed files with 88 additions and 94 deletions
test/integration
|
@ -15,7 +15,7 @@ describe('bitcoinjs-lib (advanced)', function () {
|
|||
if (err) return done(err)
|
||||
|
||||
var tx = new bitcoin.TransactionBuilder(network)
|
||||
var data = new Buffer('bitcoinjs-lib')
|
||||
var data = Buffer.from('bitcoinjs-lib')
|
||||
var dataScript = bitcoin.script.nullData.output.encode(data)
|
||||
|
||||
tx.addInput(unspent.txId, unspent.vout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue