Fix JSONRPC test utils.

This commit is contained in:
Gav Wood
2016-03-19 14:10:32 +01:00
parent 66837452c2
commit 152f132b7b
2 changed files with 14 additions and 12 deletions

View File

@@ -69,7 +69,7 @@ pub fn json_chain_test(json_data: &[u8], era: ChainEra) -> Vec<String> {
let mut state = state_result.reference_mut();
state.populate_from(pre);
state.commit();
let res = state.apply(&env, engine.deref(), &t);
let res = state.apply(&env, engine.deref(), &t, false);
if fail_unless(state.root() == &post_state_root) {
println!("!!! {}: State mismatch (got: {}, expect: {}):", name, state.root(), post_state_root);
@@ -80,9 +80,9 @@ pub fn json_chain_test(json_data: &[u8], era: ChainEra) -> Vec<String> {
}
if let Ok(r) = res {
if fail_unless(logs == r.logs) {
if fail_unless(logs == r.receipt.logs) {
println!("!!! {}: Logs mismatch:", name);
println!("Got:\n{:?}", r.logs);
println!("Got:\n{:?}", r.receipt.logs);
println!("Expect:\n{:?}", logs);
}
}