Skip to content

Commit

Permalink
hotfix(cli): verify when contractName includes sourceName (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano authored Feb 10, 2025
2 parents b5ff468 + c1ed2e8 commit c1b0b66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/commands/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export async function verify(packageRef: string, cliSettings: CliSettings, chain
const node = await runRpc({
port: 30000 + Math.floor(Math.random() * 30000),
});

const provider = getProvider(node)!;

const resolver = await createDefaultReadRegistry(cliSettings);
Expand Down Expand Up @@ -110,7 +111,7 @@ export async function verify(packageRef: string, cliSettings: CliSettings, chain
// need to parse to get the inner structure, then stringify again
sourceCode: JSON.stringify(inputData),
codeformat: 'solidity-standard-json-input',
contractname: `${contractInfo.sourceName}:${contractInfo.contractName}`,
contractname: `${contractArtifact.sourceName}:${contractArtifact.contractName}`,
compilerversion: 'v' + contractArtifact.source.solcVersion,

// NOTE: below: yes, the etherscan api is misspelling
Expand Down

0 comments on commit c1b0b66

Please sign in to comment.