-
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
bug(cast
): cast send/run
doesn't display custom errors on tx reverts
#8606
Comments
Interested in solving this one |
see #8603 |
3 tasks
zerosnacks
changed the title
bug: cast send doesn't display custom errors on tx reverts
bug(Aug 6, 2024
cast
): cast send
doesn't display custom errors on tx reverts
grandizzy
changed the title
bug(
bug(Nov 14, 2024
cast
): cast send
doesn't display custom errors on tx revertscast
): cast send/run
doesn't display custom errors on tx reverts
This was referenced Nov 14, 2024
this is fixed now, showing
to see decode with project abis, then you can use which will return
Please reopen if still an issue for you. thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (0b73b42 2024-08-05T00:19:50.130854000Z)
What command(s) is the bug in?
anvil; forge create SimpleStorage --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80; cast send 0x5FbDB2315678afecb367f032d93F642f64180aa3 "setValue(uint256)" 101 --private-key=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
Operating System
macOS (Apple Silicon)
Describe the bug
When running cast send, if your tx reverts with a custom error, cast only displays:
But no custom error (nor error, nor signature), which makes it super hard to debug.
Reproducible with the anvil's default private key with this contract:
forge create SimpleStorage --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
cast send 0x5FbDB2315678afecb367f032d93F642f64180aa3 "setValue(uint256)" 101 --private-key=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
The text was updated successfully, but these errors were encountered: