Skip to content

Commit

Permalink
deploy: update deploy constants and verify (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xble authored May 8, 2024
1 parent a9465ed commit 8522dba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion utils/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ const generateStandardJson = (
chain,
)} --optimizer-runs ${optimizerRuns} --constructor-args '${constructorArgsEncoded}' --compiler-version ${compilerVersion}`;

if (chain === "zora") {
cmd += " --verifier-url 'https://api.routescan.io/v2/network/mainnet/evm/7777777/etherscan'";
}

if (libraries.length > 0) {
cmd += ` --libraries ${libraries.join(" ")}`;
}
Expand Down Expand Up @@ -326,7 +330,10 @@ export const verify = async (chain: string, skip: boolean) => {
const contractName = result["contract_name"];
const guid = result["guid"];

const cmd = `forge verify-check ${guid} --chain-id ${getChainId(chain)}`;
let cmd = `forge verify-check ${guid} --chain-id ${getChainId(chain)}`;
if (apiKey) {
cmd += ` --etherscan-api-key ${apiKey}`;
}

console.log();
console.log(`Checking verification result for ${contractName}...`);
Expand Down

0 comments on commit 8522dba

Please sign in to comment.