Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 9e40379

Browse files
committed
Merge branch '1.x' into release/1.7.4
2 parents a286ab3 + 739217c commit 9e40379

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/web3-utils/src/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ var BNwrapped = function (value) {
545545
return new BN(value);
546546
}
547547
};
548+
Object.setPrototypeOf(BNwrapped, BN);
549+
Object.setPrototypeOf(BNwrapped.prototype, BN.prototype);
548550

549551
module.exports = {
550552
BN: BNwrapped,

0 commit comments

Comments
 (0)