foundry
foundry copied to clipboard
bug(`anvil`): JSON-RPC `trace_transaction` `error` field is not set
Component
Anvil
Describe the feature you would like
Looking at the output of the trace_transaction
JSON-RPC method, I cannot see i proper way to distinguish between a reverted transaction (with optional revert reason data) and a successful transaction with return data. Would it be possible to add a boolean status
field distinguishing between a failed and a successful transaction? The status can be queried using the eth_getTransactionReceipt
request but that requires one more JSON-RPC method to be sent.
Additional context
No response