Skip to content

Commit

Permalink
Edited Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shamardy committed Jun 27, 2018
1 parent 6c21e6d commit 12a7638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/src/v1/tests/mocked/traces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ fn rpc_trace_replay_transaction() {
let tester = io();

let request = r#"{"jsonrpc":"2.0","method":"trace_replayTransaction","params":["0x0000000000000000000000000000000000000000000000000000000000000005", ["trace", "stateDiff", "vmTrace"]],"id":1}"#;
let response = r#"{"jsonrpc":"2.0","result":{"output":"0x010203","stateDiff":null,"trace":[],"vmTrace":null},"id":1}"#;
let response = r#"{"jsonrpc":"2.0","result":{"TransactionHash":null,"output":"0x010203","stateDiff":null,"trace":[],"vmTrace":null},"id":1}"#;

assert_eq!(tester.io.handle_request_sync(request), Some(response.to_owned()));
}
Expand All @@ -238,7 +238,7 @@ fn rpc_trace_replay_block_transactions() {
let tester = io();

let request = r#"{"jsonrpc":"2.0","method":"trace_replayBlockTransactions","params":["0x10", ["trace", "stateDiff", "vmTrace"]],"id":1}"#;
let response = r#"{"jsonrpc":"2.0","result":[{"output":"0x010203","stateDiff":null,"trace":[],"vmTrace":null}],"id":1}"#;
let response = r#"{"jsonrpc":"2.0","result":[],"id":1}"#;

assert_eq!(tester.io.handle_request_sync(request), Some(response.to_owned()));
}

0 comments on commit 12a7638

Please sign in to comment.