Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptopapi997 committed Dec 17, 2022
1 parent 5c0f729 commit cee9820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3.js/src/publickey.ts
Expand Up @@ -113,7 +113,7 @@ export class PublicKey extends Struct {
*/
toBytes(): Uint8Array {
const buf = this.toBuffer();
return new Uint8Array(b.buffer, b.byteOffset, b.byteLength);
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
}

/**
Expand Down

0 comments on commit cee9820

Please sign in to comment.