diff --git a/packages/web3-utils/src/utils.js b/packages/web3-utils/src/utils.js index 9e00057c991..a120175710c 100644 --- a/packages/web3-utils/src/utils.js +++ b/packages/web3-utils/src/utils.js @@ -545,6 +545,8 @@ var BNwrapped = function (value) { return new BN(value); } }; +Object.setPrototypeOf(BNwrapped, BN); +Object.setPrototypeOf(BNwrapped.prototype, BN.prototype); module.exports = { BN: BNwrapped,