feat: add error field to parity transaction traces (#3611)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Chris Evanko
2023-07-06 07:20:19 -04:00
committed by GitHub
parent 428a6dc2f6
commit 09fe22f470
3 changed files with 7 additions and 21 deletions

View File

@ -6,8 +6,7 @@ use reth_rpc_types::trace::{
geth::{CallFrame, CallLogFrame, GethDefaultTracingOptions, StructLog},
parity::{
Action, ActionType, CallAction, CallOutput, CallType, ChangedType, CreateAction,
CreateOutput, Delta, SelfdestructAction, StateDiff, TraceOutput, TraceResult,
TransactionTrace,
CreateOutput, Delta, SelfdestructAction, StateDiff, TraceOutput, TransactionTrace,
},
};
use revm::interpreter::{
@ -321,9 +320,10 @@ impl CallTraceNode {
/// Converts this node into a parity `TransactionTrace`
pub(crate) fn parity_transaction_trace(&self, trace_address: Vec<usize>) -> TransactionTrace {
let action = self.parity_action();
let output = TraceResult::parity_success(self.parity_trace_output());
let output = self.parity_trace_output();
TransactionTrace {
action,
error: None,
result: Some(output),
trace_address,
subtraces: self.children.len(),