Skip to content

Commit d60ba49

Browse files
authored
Fixes issue#1974
Wrong method call fixed for the issue #1974
1 parent bcf1bf8 commit d60ba49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/address.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function fromBase58Check(address) {
4646
// TODO: 4.0.0, move to "toOutputScript"
4747
if (payload.length < 21) throw new TypeError(address + ' is too short');
4848
if (payload.length > 21) throw new TypeError(address + ' is too long');
49-
const version = payload.readUint8(0);
49+
const version = payload.readUInt8(0);
5050
const hash = payload.slice(1);
5151
return { version, hash };
5252
}

0 commit comments

Comments
 (0)