Skip to content

Commit

Permalink
successfully deploy and verify
Browse files Browse the repository at this point in the history
  • Loading branch information
eiyen committed Mar 30, 2023
1 parent afd4131 commit 8304720
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions W3-1/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
require("@nomiclabs/hardhat-waffle");
require("dotenv").config();
require("@nomiclabs/hardhat-etherscan");

const { ProxyAgent, setGlobalDispatcher } = require("undici");
const proxyAgent = new ProxyAgent("http://127.0.0.1:7890");
setGlobalDispatcher(proxyAgent);

const { INFURA_RPC_URL, PRIVATE_KEY, ETHERSCAN_API_KEY } = process.env;

module.exports = {
solidity: "0.8.9",
networks: {
localhost: {
url: "http://localhost:8545",
},
goerli: {
url:INFURA_RPC_URL,
accounts: [PRIVATE_KEY],
chainId: 5,
}
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
}
};

0 comments on commit 8304720

Please sign in to comment.