Skip to content

Commit e355b7c

Browse files
committed
Fix Buffer alloc in js test
1 parent feb5b9a commit e355b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrap_js/test/test_bip32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test('BIP32 from seed to address', function(t) {
7979
return wally.wally_hash160(pubkey);
8080
}).then((script) => {
8181
const prefix = Buffer.from('eb', 'hex');
82-
return wally.wally_base58_from_bytes(Buffer.concat([prefix, new Buffer(script)]), wally.BASE58_FLAG_CHECKSUM);
82+
return wally.wally_base58_from_bytes(Buffer.concat([prefix, new Buffer.from(script)]), wally.BASE58_FLAG_CHECKSUM);
8383
}).then((address) => {
8484
t.equal(
8585
address,

0 commit comments

Comments
 (0)