Skip to content

Commit 1cd80e5

Browse files
committed
Fix TS as well
1 parent d60ba49 commit 1cd80e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/bufferutils.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ describe('bufferutils', () => {
316316
}
317317
}
318318

319-
it('readUint8', () => {
319+
it('readUInt8', () => {
320320
const values = [0, 1, 0xfe, 0xff];
321321
const buffer = Buffer.from([0, 1, 0xfe, 0xff]);
322322
const bufferReader = new BufferReader(buffer);

ts_src/address.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function fromBase58Check(address: string): Base58CheckResult {
5959
if (payload.length < 21) throw new TypeError(address + ' is too short');
6060
if (payload.length > 21) throw new TypeError(address + ' is too long');
6161

62-
const version = payload.readUint8(0);
62+
const version = payload.readUInt8(0);
6363
const hash = payload.slice(1);
6464

6565
return { version, hash };

0 commit comments

Comments
 (0)