-
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
Verifying via Script causes error #6192
Comments
Might just be a non-helpful error from Etherscan / Basescan when there's an issue, like when the API key is incorrect. Even when you're uploading to Base, it looks for |
same error |
I assume this is related to #7466 + #7699 Closing this ticket in favor of those two. The current way |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (94ae897 2023-10-31T00:17:29.299689000Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Apple Silicon)
Describe the bug
I have a script that works to deploy+verify a contract. it calls this deploy.s.sol script
If I just deploy the contract, that works too.
If I try to verify the contract I just deployed that hasn't been verified yet, it does not work. I try this by running the same script up there, but with
eval $deploy_command
commented outThis is the error I get
Easiest steps to full repro would be:
Add the
deploy_contract()
bash function to your.zshrc
or similar. comment out thewhile do
sectionopen a new window or
source
your.zshrc
fileadd the following to your
.env
filethe contract should be deployed to sepolia
comment out
eval $deploy_command
comment back in the
while do
sectionopen a new window or
source
your.zshrc
fileat this point, you should get the same error
The text was updated successfully, but these errors were encountered: