foundry icon indicating copy to clipboard operation
foundry copied to clipboard

`forge inspect <contract> errors/events`

Open ultrasecreth opened this issue 3 years ago • 0 comments

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

ultrasecreth avatar Sep 08 '22 21:09 ultrasecreth