Skip to content

Commit b8f4f32

Browse files
committed
Fix add network github action
1 parent a411e98 commit b8f4f32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/addNetwork.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const network = {
2222
name: networkName,
2323
shortName,
2424
chainId: parseInt(chainId, 10),
25-
network: testnet ? 'testnet' : networkName,
25+
network: testnet ? 'testnet' : 'mainnet',
2626
multicall,
2727
rpc: [],
2828
explorer: {
@@ -31,7 +31,8 @@ const network = {
3131
start: parseInt(start, 10),
3232
logo: `ipfs://${logo}`
3333
};
34-
if (testnet) (network as any).testnet = true;
34+
// @ts-ignore
35+
if (testnet) network.testnet = true;
3536

3637
networks[chainId] = network;
3738
console.log(networks[chainId]);

0 commit comments

Comments
 (0)