Skip to content

Commit fdec756

Browse files
committed
Updated hardhat.config.js file
1 parent c9e0777 commit fdec756

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hardhat.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require("@nomiclabs/hardhat-waffle");
22
require("dotenv").config();
3-
const configs = require('./appconfigs.json');
43

54
// This is a sample Hardhat task. To learn how to create your own go to
65
// https://hardhat.org/guides/create-task.html
@@ -26,7 +25,11 @@ task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
2625
},
2726
networks: {
2827
mumbai: {
29-
url: process.env[`PROVIDER_URL_${configs.network.toUpperCase()}`],
28+
url: process.env[`PROVIDER_URL_MUMBAI`],
29+
accounts: [process.env.ACCOUNT_KEY]
30+
},
31+
polygon: {
32+
url: process.env[`PROVIDER_URL_POLYGON`],
3033
accounts: [process.env.ACCOUNT_KEY]
3134
}
3235
}

0 commit comments

Comments
 (0)