Skip to content

Commit

Permalink
fix: put attribute on correct line (#3636)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jul 6, 2023
1 parent 6d5b6c6 commit 77cd4ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/rpc/rpc-types/src/eth/trace/parity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ pub enum TraceOutput {
pub struct TransactionTrace {
#[serde(flatten)]
pub action: Action,
#[serde(flatten, skip_serializing_if = "Option::is_none")]
pub error: Option<String>,
#[serde(flatten, skip_serializing_if = "Option::is_none")]
pub result: Option<TraceOutput>,
pub subtraces: usize,
pub trace_address: Vec<usize>,
Expand Down Expand Up @@ -331,6 +331,7 @@ mod tests {
"transactionPosition": 0,
"type": "call"
}"#;
let _val = serde_json::from_str::<TransactionTrace>(s).unwrap();
let val = serde_json::from_str::<TransactionTrace>(s).unwrap();
serde_json::to_value(val).unwrap();
}
}

0 comments on commit 77cd4ab

Please sign in to comment.