mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix: put attribute on correct line (#3636)
This commit is contained in:
@ -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>,
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user