We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98cc32c commit ee67f82Copy full SHA for ee67f82
src/publickey.js
@@ -50,7 +50,7 @@ export class PublicKey {
50
* Return the base-58 representation of the public key
51
*/
52
toBuffer(): Buffer {
53
- const b = this._bn.toBuffer();
+ const b = this._bn.toArrayLike(Buffer);
54
if (b.length === 32) {
55
return b;
56
}
0 commit comments