Skip to content

Conversation

fusmanii
Copy link
Contributor

@fusmanii fusmanii commented Sep 19, 2025

Any chain that is in this list doesn't need an api key or customChains definition

All other chains that are not in that list will need to go in blockscout section

Comment on lines 95 to 99
if (hre.config.blockscout.enabled && hre.config.blockscout.customChains.some((chain) => chain.chainId === chainId)) {
await run("verify:blockscout", { address: instance, constructorArguments: constructorArgs, contract });
} else {
await run("verify:verify", { address: instance, constructorArguments: constructorArgs, contract });
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will need to abstract this away since "verify:verify" is used in other scripts as well

@grasphoper
Copy link
Contributor

@fusmanii this is very interesting! You didn't need to bump hardhat for this to work?

Signed-off-by: Faisal Usmani <[email protected]>
Signed-off-by: Faisal Usmani <[email protected]>
Signed-off-by: Faisal Usmani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants