Skip to content

Commit 6dad3f3

Browse files
authored
Merge pull request #314 from gnosis/feature/add-networks-to-deploy
Add more Infura supported networks to deploy configuration
2 parents 186a21a + c4fb5d2 commit 6dad3f3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

hardhat.config.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (PK) {
3030
};
3131
}
3232

33-
if (["mainnet", "rinkeby", "kovan", "goerli"].includes(argv.network) && INFURA_KEY === undefined) {
33+
if (["mainnet", "rinkeby", "kovan", "goerli", "ropsten", "mumbai", "polygon"].includes(argv.network) && INFURA_KEY === undefined) {
3434
throw new Error(
3535
`Could not find Infura key in env, unable to connect to network ${argv.network}`,
3636
);
@@ -83,10 +83,22 @@ const userConfig: HardhatUserConfig = {
8383
...sharedNetworkConfig,
8484
url: `https://goerli.infura.io/v3/${INFURA_KEY}`,
8585
},
86+
ropsten: {
87+
...sharedNetworkConfig,
88+
url: `https://ropsten.infura.io/v3/${INFURA_KEY}`,
89+
},
8690
kovan: {
8791
...sharedNetworkConfig,
8892
url: `https://kovan.infura.io/v3/${INFURA_KEY}`,
8993
},
94+
mumbai: {
95+
...sharedNetworkConfig,
96+
url: `https://polygon-mumbai.infura.io/v3/${INFURA_KEY}`,
97+
},
98+
polygon: {
99+
...sharedNetworkConfig,
100+
url: `https://polygon-mainnet.infura.io/v3/${INFURA_KEY}`,
101+
},
90102
volta: {
91103
...sharedNetworkConfig,
92104
url: `https://volta-rpc.energyweb.org`,

0 commit comments

Comments
 (0)