foundry
foundry copied to clipboard
Tighter ABI integration in Cast
Component
Cast
Describe the feature you would like
Custom errors are (hopefully) the future for Solidity, but tooling to support them is lacking across the ecosystem. I would like to be able to pass a param like --contract to cast send and, if the txn fails, have the data interpreted as a custom error under the assumption that the called contract code matched the code for the passed contract.
Edit (onbjerg): Similarly, we could use the contract ABI to decode other things
Additional context
No response
Changed the title slightly; I think in general we should have better ABI support in Cast for things like this.
Commands that should support it:
cast sendcast run