Skip to content

Commit c046161

Browse files
committed
Fix buffer/array conversion
1 parent 1e700ef commit c046161

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
@@ -78,7 +78,7 @@ test('BIP32 from seed to address', function(t) {
7878
}).then((pubkey) => {
7979
return wally.wally_hash160(pubkey);
8080
}).then((script) => {
81-
const prefix = Buffer.from('eb', 'hex');
81+
const prefix = new Uint8Array([0xeb]);
8282
return wally.wally_base58_from_bytes(Buffer.concat([prefix, script]), wally.BASE58_FLAG_CHECKSUM);
8383
}).then((address) => {
8484
t.equal(

0 commit comments

Comments
 (0)