Skip to content

Commit

Permalink
Update trace.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
shamardy authored Jun 27, 2018
1 parent 5078d67 commit 3e0b0ef
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions rpc/src/v1/types/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,9 +618,6 @@ pub struct TraceResults {
/// The transaction trace.
#[serde(rename="stateDiff")]
pub state_diff: Option<StateDiff>,
/// The transaction trace.
#[serde(rename="transactionHash")]
pub transaction_hash: Option<H256>,
}

impl From<Executed> for TraceResults {
Expand All @@ -630,7 +627,6 @@ impl From<Executed> for TraceResults {
trace: t.trace.into_iter().map(Into::into).collect(),
vm_trace: t.vm_trace.map(Into::into),
state_diff: t.state_diff.map(Into::into),
transaction_hash: t.transaction_hash.map(Into::into),
}
}
}
Expand All @@ -650,10 +646,9 @@ mod tests {
trace: vec![],
vm_trace: None,
state_diff: None,
transaction_hash: None,
};
let serialized = serde_json::to_string(&r).unwrap();
assert_eq!(serialized, r#"{"output":"0x60","trace":[],"vmTrace":null,"stateDiff":null,"transactionHash":null}"#);
assert_eq!(serialized, r#"{"output":"0x60","trace":[],"vmTrace":null,"stateDiff":null}"#);
}

#[test]
Expand Down

0 comments on commit 3e0b0ef

Please sign in to comment.