We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c046161 commit 6278e62Copy full SHA for 6278e62
src/wrap_js/test/test_bip32.js
@@ -78,8 +78,8 @@ test('BIP32 from seed to address', function(t) {
78
}).then((pubkey) => {
79
return wally.wally_hash160(pubkey);
80
}).then((script) => {
81
- const prefix = new Uint8Array([0xeb]);
82
- return wally.wally_base58_from_bytes(Buffer.concat([prefix, script]), wally.BASE58_FLAG_CHECKSUM);
+ const prefix = Buffer.from('eb', 'hex');
+ return wally.wally_base58_from_bytes(Buffer.concat([prefix, new Buffer(script)]), wally.BASE58_FLAG_CHECKSUM);
83
}).then((address) => {
84
t.equal(
85
address,
0 commit comments