Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const chainIds = {
"polygon-mumbai": 80001,
rinkeby: 4,
kovan: 42,
sepolia: 11155111
};

const getAlchemyUrl = (network: keyof typeof chainIds) => {
Expand All @@ -69,6 +70,8 @@ const getAlchemyUrl = (network: keyof typeof chainIds) => {
return process.env.POLYGON_MUMBAI_RPC_URL;
case "polygon-mainnet":
return process.env.POLYGON_MAINNET_RPC_URL;
case "sepolia":
return process.env.SEPOLIA_RPC_URL;
default:
throw new Error(`No Alchemy URL configured for the ${network} network`);
}
Expand Down Expand Up @@ -135,6 +138,7 @@ const config: HardhatUserConfig = {
etherscan: {
apiKey: {
mainnet: `${process.env.ETHERSCAN_API_KEY}`,
sepolia: `${process.env.ETHERSCAN_API_KEY}`,
arbitrumOne: `${process.env.ARBSCAN_API_KEY}`,
optimisticEthereum: `${process.env.OPTIMISM_API_KEY}`,
optimisticGoerli: `${process.env.OPTIMISM_API_KEY}`,
Expand All @@ -158,6 +162,7 @@ const config: HardhatUserConfig = {
polygonMumbai: getChainConfig("polygon-mumbai"),
// rinkeby: getChainConfig("rinkeby"),
// kovan: getChainConfig("kovan"),
sepolia: getChainConfig("sepolia")
},
paths: {
artifacts: "./artifacts",
Expand Down
1 change: 1 addition & 0 deletions tasks/deploy/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ task("deploy:AccessTokenVerifier")
console.log("AccessTokenVerifier deployed to: ", accessTokenVerifier.address);

console.log("Verifying contract...");
await accessTokenVerifier.deployTransaction.wait(5);

await run("verify:verify", {
address: accessTokenVerifier.address,
Expand Down