-
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
cast etherscan-source not respecting [etherscan] config #9494
Comments
I think this should be part of #4776 resolution @zerosnacks wdyt? also mind that cast doesn't have configs to read from |
I think so as well, it should be covered by #4776 As stated, it is currently not expected behavior for |
Marking as Added a note to #4776:
|
oh sorry i completely forgot i faced this before and didn't find on search :/ |
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (805d7ce 2024-12-04T00:23:29.410361000Z)
What command(s) is the bug in?
cast etherscan-source
Operating System
macOS (Apple Silicon)
Describe the bug
In my foundry.toml i have a setup like:
Which when running
forge script ... --verify
is recognized and works appropriately.When I run
cast etherscan-source --chain alias|id
though,cast
will always try to use theETHERSCAN_API_KEY
and does not consider theetherscan
setup in the toml. Therefore cast always fails with invalid api key as it's trying to use the wrong api key. As a fix one can manually supply the correct one via --etherscan-api-key, but that obviously is suboptimal.The text was updated successfully, but these errors were encountered: