-
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
Forge verify does not parse etherscan section of foundry.toml #4563
Labels
T-bug
Type: bug
Comments
cc @DaniPopes @debych can you please post your config file. |
|
Is the forge init test
cd test
forge build
printf '\n[etherscan]\npolygon = { key = "${POLYGON_ETHERSCAN_API_KEY}" }' >> foundry.toml
# error: ... not set
unset POLYGON_ETHERSCAN_API_KEY
forge v $(cast address-zero) Counter --chain polygon
# error (after making the request to etherscan): invalid api key
export POLYGON_ETHERSCAN_API_KEY="abcd"
forge v $(cast address-zero) Counter --chain polygon |
Yes it is set in the
|
@debych could you please link the repo or prepare a repro for this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (df8ab09 2023-03-14T10:00:26.197329Z)
What command(s) is the bug in?
forge verify-contract
Operating System
macOS (Apple Silicon)
Describe the bug
Calling this command
forge verify-contract --chain polygon <address> <name>
Gives
after probably this commit. It doesnt work even this way
forge verify-contract --chain polygon --etherscan-api-key <key> <address> <name>
getting the same error
The text was updated successfully, but these errors were encountered: