foundry
foundry copied to clipboard
`forge inspect <contract> errors/events`
Component
Forge
Describe the feature you would like
When working with custom errors, sometimes for whatever reason the chain will spit out the raw bytes instead of the parsed error.
In those cases, it'd be very useful to be able to list the bytes4 sig of all the errors a contract may throw so then I can parse the raw bytes with cast.
I think that for completeness, I'd do the same for events, which would be useful when sometimes, even if the contract is verified, etherscan shows the raw byes.
Thanks!
Additional context
No response