-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Vm.getCode
can't find the artifact file: No matching artifact found
#7745
Comments
relative path to artifact works, but inputs of format |
cc @klkvr |
Likely resolved by #7738, @arshan-ritual could you please try running foundryup tomorrow and check if issue persists? or |
Yes, will do. |
@arshan-ritual does it work for you on latest nightly? |
Assuming this works now. Please feel free to re-open if that's not the case. |
still having issues with this using the latest nightly as of 5/10 |
@0xMySt1c are you using getCode for contracts under src/? |
@klkvr using a custom dir set in foundry.toml |
what are the differences between profiles?
|
you mean something like |
the only difference is that one of the profiles is gas optimized. i haven't tried a path because this setup code is called in both profiles. |
no using the format "Contract.sol:Contract" |
confirming that a path works. my current workaround will be to determine the path using the profile |
sorry what do you mean by "path" here? are two profiles operating on different |
getCode("out/artifacts/Contract.sol/Contract.json") works |
can you confirm that |
Ever since upgrading foundry today, all of my scripts that depended on
vm.getCode
are now failing.foundryup
OutputOld foundry version
I can't tell what my older version was unfortunately.
The text was updated successfully, but these errors were encountered: