From 61e083260fc170c432116fda5916955c0e126f6a Mon Sep 17 00:00:00 2001 From: Samuel Furter Date: Wed, 8 May 2019 09:56:21 +0200 Subject: [PATCH] isBN fixed --- packages/web3-utils/src/Utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web3-utils/src/Utils.js b/packages/web3-utils/src/Utils.js index 4b90d0963ca..f441c9180e3 100644 --- a/packages/web3-utils/src/Utils.js +++ b/packages/web3-utils/src/Utils.js @@ -41,7 +41,7 @@ import BN from 'bn.js'; * @returns {Boolean} */ export const isBN = (object) => { - return object instanceof BN || (object && object.constructor && object.constructor.name === 'BN'); + return BN.isBN(object); }; /**