-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(verify): use configured solc_version
(if any) to identify artifact
#9483
Conversation
solc_version
(if any) to identify artifact
match solc { | ||
SolcReq::Version(version) => version.to_owned(), | ||
SolcReq::Local(solc) => Solc::new(solc)?.version, | ||
} | ||
} else if let Some(ref version) = self.compiler_version { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cli arg should come first or alternatively it is merged onto config and then just config is present here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, just realized https://github.com/superform-xyz/SuperVaults/blob/testProdDeployment/script/utils/verify_contracts.sh#L32C1-L32C49 so not sure we actually need any change here. ...
Hey folks, Aleksandar from Tenderly here 👋 We are looking into the issue with Superform team (their verifications are failing on our platform using foundry). They asked us to paste our findings here in case they are helpful: We are getting compilation errors. Namely, the compiler is unable to find imports for Now, looking at Hope some of this info helps. |
Ok, I got confused with similar paths, and imagined an error where there is none. The error actually happens when attempting to import From our perspective, this should be fixed by either:
And I apologise for causing confusion with my initial message 🙏 |
@strahor-13 thank you! I created #9487 to follow up on this issue and will close this PR as it is not really needed. let's continue discussion there |
Motivation
reproducible with https://github.com/superform-xyz/SuperVaults/tree/testProdDeployment by running
sh ./script/utils/verify_contracts.sh
after aforge build
(works OK if no cache /forge clean
issued before)Error: No matching artifact found for SuperVault
because artifact was compiled with version withinfoundry.toml
(solc_version = "0.8.23"
, artifacts added in cache with{Version { major: 0, minor: 8, patch: 23 }
key) but we first detect version from solc (which isv0.8.23+commit.f704f362
so parsed asVersion { major: 0, minor: 8, patch: 23, build: BuildMetadata("commit.f704f362") }
cannot identify cached artifact)foundry/crates/verify/src/verify.rs
Lines 278 to 284 in 2c9719e
Solution