fix: expose Buffer to bundlers

This commit is contained in:
Michael Vines 2018-09-30 20:40:59 -07:00
parent aa1d6ba4d4
commit e090e7b600

View File

@ -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;
}