Skip to content

Commit

Permalink
fix: etherscan api key for ethereum (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xged authored Apr 11, 2022
1 parent 8af576b commit 5e4d427
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const getChainId = async (hre: HardhatRuntimeEnvironment): Promise<number
return testChainId;
}
if (!!process.env.FORK) return getRealChainIdOfFork(hre);
return await (hre as any).getChainId();
return parseInt(await hre.getChainId());
};

export const getRealChainIdOfFork = (hre: HardhatRuntimeEnvironment): number => {
Expand Down
2 changes: 1 addition & 1 deletion utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function getEtherscanAPIKeys(networks: string[]): { [network: string]: st
if (!networkApiKey) {
console.warn(`No etherscan api key for ${network}`);
} else {
apiKeys[network] = networkApiKey;
apiKeys[network == 'ethereum' ? 'mainnet' : network] = networkApiKey;
}
});
return apiKeys;
Expand Down

0 comments on commit 5e4d427

Please sign in to comment.