From e090e7b600b5aa7ad7a549e60f8d52dbd4cccbb0 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 30 Sep 2018 20:40:59 -0700 Subject: [PATCH] fix: expose Buffer to bundlers --- web3.js/src/publickey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3.js/src/publickey.js b/web3.js/src/publickey.js index 9003b86ccf..3af8d5ec4b 100644 --- a/web3.js/src/publickey.js +++ b/web3.js/src/publickey.js @@ -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; }