Skip to content

Commit ee67f82

Browse files
committed
fix: expose Buffer to bundlers
1 parent 98cc32c commit ee67f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/publickey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class PublicKey {
5050
* Return the base-58 representation of the public key
5151
*/
5252
toBuffer(): Buffer {
53-
const b = this._bn.toBuffer();
53+
const b = this._bn.toArrayLike(Buffer);
5454
if (b.length === 32) {
5555
return b;
5656
}

0 commit comments

Comments
 (0)