Skip to content

Commit 6278e62

Browse files
committed
Convert array to buffer for node 6.x
1 parent c046161 commit 6278e62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wrap_js/test/test_bip32.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ test('BIP32 from seed to address', function(t) {
7878
}).then((pubkey) => {
7979
return wally.wally_hash160(pubkey);
8080
}).then((script) => {
81-
const prefix = new Uint8Array([0xeb]);
82-
return wally.wally_base58_from_bytes(Buffer.concat([prefix, script]), wally.BASE58_FLAG_CHECKSUM);
81+
const prefix = Buffer.from('eb', 'hex');
82+
return wally.wally_base58_from_bytes(Buffer.concat([prefix, new Buffer(script)]), wally.BASE58_FLAG_CHECKSUM);
8383
}).then((address) => {
8484
t.equal(
8585
address,

0 commit comments

Comments
 (0)