Skip to content

Commit e0a3b1e

Browse files
committed
fix: node switch issue
1 parent f1a9499 commit e0a3b1e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/networks/nodes/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import moonbeam from './moonbeam-ws';
1010
import moonriver from './moonriver-ws';
1111
import rootstock from './rootstock-ws';
1212
import aurora from './aurora-ws';
13+
import arb from './arb-mew-ws';
1314
// import avalanche from './avalanche-ws';
1415
import fantom from './fantom-ws';
1516
import gnosis from './gnosis-ws';
@@ -29,6 +30,7 @@ export {
2930
moonriver,
3031
rootstock,
3132
aurora,
33+
arb,
3234
// avalanche,
3335
fantom,
3436
gnosis,

tests/unit/__mocks__/networksMock.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ import nodeList from '../../../src/utils/networks';
22
const _nodeList = {};
33
for (const net in nodeList) {
44
const _net = [nodeList[net][0]];
5-
if (_net[0] && _net[0].type) {
6-
_net[0].type.contracts = [];
7-
_net[0].type.tokens = [];
8-
_nodeList[net] = _net;
9-
}
5+
_net[0].type.contracts = [];
6+
_net[0].type.tokens = [];
7+
_nodeList[net] = _net;
108
}
119
module.exports = _nodeList;

0 commit comments

Comments
 (0)