foundry icon indicating copy to clipboard operation
foundry copied to clipboard

bug(`anvil`): JSON-RPC `trace_transaction` `error` field is not set

Open michprev opened this issue 2 years ago • 4 comments

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

michprev avatar Oct 26 '22 11:10 michprev