foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Tighter ABI integration in Cast

Open peter-ciccolo opened this issue 3 years ago • 1 comments

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

peter-ciccolo avatar Jul 25 '22 06:07 peter-ciccolo

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 send
  • cast run

onbjerg avatar Jul 25 '22 15:07 onbjerg