Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tracing): align trace output with geth (#198)
1. The error msg should not be converted to parity style in `callTracer`. They should only be converted in `flatCallTracer` which is not supported by reth now. 2. The `gasUsed` should be the `gasLimit` when there's a not reverted error. 3. The `call_frame.to` should be None if the call type is `Create/Create2` and it failed. Related geth code: * https://github.com/ethereum/go-ethereum/blob/a9523b6428238a762e1a1e55e46ead47630c3a23/eth/tracers/native/call_flat.go#L226 * https://github.com/ethereum/go-ethereum/blob/a9523b6428238a762e1a1e55e46ead47630c3a23/core/vm/evm.go#L254 * https://github.com/ethereum/go-ethereum/blob/a9523b6428238a762e1a1e55e46ead47630c3a23/eth/tracers/native/call.go#L88 --------- Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
- Loading branch information