Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(forge): show additional details of contract to verify #9403

Merged
merged 1 commit into from
Nov 25, 2024
Merged
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
11 changes: 11 additions & 0 deletions crates/verify/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,17 @@ impl VerifyArgs {

let verifier_url = self.verifier.verifier_url.clone();
sh_println!("Start verifying contract `{}` deployed on {chain}", self.address)?;
if let Some(version) = &self.compiler_version {
sh_println!("Compiler version: {version}")?;
}
if let Some(optimizations) = &self.num_of_optimizations {
sh_println!("Optimizations: {optimizations}")?
}
if let Some(args) = &self.constructor_args {
if !args.is_empty() {
sh_println!("Constructor args: {args}")?
}
}
self.verifier.verifier.client(&self.etherscan.key())?.verify(self, context).await.map_err(|err| {
if let Some(verifier_url) = verifier_url {
match Url::parse(&verifier_url) {
Expand Down
Loading