fix: by using node-fetch
MODIFY
package-lock.json
package-lock.json
"integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
"dev": true
},
- "isomorphic-fetch": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz",
- "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==",
- "requires": {
- "node-fetch": "^2.6.1",
- "whatwg-fetch": "^3.4.1"
- },
- "dependencies": {
- "whatwg-fetch": {
- "version": "3.5.0",
- "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.5.0.tgz",
- "integrity": "sha512-jXkLtsR42xhXg7akoDKvKWE40eJeI+2KZqcp2h3NsOrRnDvtWX36KcKl30dy+hxECivdk2BVUHVNrPtoMBUx6A=="
- }
- }
- },
"isstream": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",

MODIFY
package.json
package.json
"ethereumjs-block": "2.2.0",
"ethereumjs-tx": "1.3.7",
"ethereumjs-util": "^5.2.0",
- "isomorphic-fetch": "^3.0.0",
"merkle-patricia-tree": "2.3.2",
+ "node-fetch": "^2.6.1",
"query-string": "6.8.1",
"web3": "^1.3.0"
},

MODIFY
src/common/ExitManager.ts
src/common/ExitManager.ts
import BN from 'bn.js'
import assert from 'assert'
import ethUtils from 'ethereumjs-util'
+import fetch from 'node-fetch'
import Web3Client from './Web3Client'
import ContractsBase from './ContractsBase'

MODIFY
src/libs/ProofsUtil.ts
src/libs/ProofsUtil.ts
+import fetch from 'node-fetch'
+
const BN = require('bn.js')
const bluebird = require('bluebird')
-import fetch from 'isomorphic-fetch'
const Trie = require('merkle-patricia-tree')
const EthereumTx = require('ethereumjs-tx')
const ethUtils = require('ethereumjs-util')

fix: #141 by using node-fetch