fix: expose Buffer to bundlers
This commit is contained in:
parent
aa1d6ba4d4
commit
e090e7b600
@ -50,7 +50,7 @@ export class PublicKey {
|
||||
* Return the base-58 representation of the public key
|
||||
*/
|
||||
toBuffer(): Buffer {
|
||||
const b = this._bn.toBuffer();
|
||||
const b = this._bn.toArrayLike(Buffer);
|
||||
if (b.length === 32) {
|
||||
return b;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user