forked from paradigmxyz/revm-inspectors
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tracing/js): error not set in result_fn (paradigmxyz#222)
We only set step's error, but missing the result's one. use this tx to test it ```json { "jsonrpc": "2.0", "method": "debug_traceTransaction", "id": "1", "params": [ "0x18ba7c5bcb851072612c0451377f55ac4ef83986ec8d9f87a2ce07c9a7d6371f", { "tracer": "{ fault: function() {}, result: function(ctx, _) { return { error: !!ctx.error }; } }" } ] } ``` for geth/erigon's response is: ```json { "id": "1", "jsonrpc": "2.0", "result": { "error": true } } ``` currently reth's response is: ```json { "id": "1", "jsonrpc": "2.0", "result": { "error": false } } ``` --------- Signed-off-by: jsvisa <delweng@gmail.com>
- Loading branch information
Showing
3 changed files
with
122 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters