Skip to content

Commit

Permalink
updating web3 utils BN (#5132)
Browse files Browse the repository at this point in the history
* updating bnWrapped object

* refactor static methods of bnwrapped
  • Loading branch information
Alex authored Jun 14, 2022
1 parent 23e3045 commit 739217c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web3-utils/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 739217c

Please sign in to comment.