uninstall bn.js
MODIFY
package-lock.json
package-lock.json
{
"name": "@maticnetwork/maticjs",
- "version": "3.0.0-beta.12",
+ "version": "3.0.0-beta.14",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"any-observable": "^0.3.0"
}
},
- "@types/bn.js": {
- "version": "4.11.5",
- "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.5.tgz",
- "integrity": "sha512-AEAZcIZga0JgVMHNtl1CprA/hXX7/wPt79AgR4XqaDt7jyj3QWYw6LPoOiznPtugDmlubUnAahMs2PFxGcQrng==",
- "dev": true,
- "requires": {
- "@types/node": "*"
- }
- },
"@types/eslint-visitor-keys": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz",
"bn.js": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.0.0.tgz",
- "integrity": "sha512-bVwDX8AF+72fIUNuARelKAlQUNtPOfG2fRxorbVvFk4zpHbqLrPdOGfVg5vrKwVzLLePqPBiATaOZNELQzmS0A=="
+ "integrity": "sha512-bVwDX8AF+72fIUNuARelKAlQUNtPOfG2fRxorbVvFk4zpHbqLrPdOGfVg5vrKwVzLLePqPBiATaOZNELQzmS0A==",
+ "dev": true
},
"brace-expansion": {
"version": "1.1.11",

MODIFY
package.json
package.json
},
"homepage": "https://github.com/maticnetwork/matic.js#readme",
"dependencies": {
- "bn.js": "5.0.0",
"eth-sig-util": "^2.5.3",
"ethereumjs-block": "2.2.0",
"ethereumjs-tx": "1.3.7",
"node-fetch": "^2.6.1"
},
"devDependencies": {
- "@types/bn.js": "4.11.5",
"@types/ethereumjs-util": "^6.1.0",
"@types/node-fetch": "^2.5.12",
"@typescript-eslint/eslint-plugin": "^2.16.0",

MODIFY
src/implementation/bn.ts
src/implementation/bn.ts
-import BN from "bn.js";
import { throwNotImplemented } from "..";
import { BaseBigNumber } from "../abstracts";

uninstall bn.js