diff --git a/src/tests/state.rs b/src/tests/state.rs index 9502f08e4..208ba4dfd 100644 --- a/src/tests/state.rs +++ b/src/tests/state.rs @@ -47,7 +47,7 @@ fn do_json_test(json_data: &[u8]) -> Vec { let t = Transaction::from_json(&test["transaction"]); let env = EnvInfo::from_json(&test["env"]); - let out = bytes_from_json(&test["out"]); + let _out = bytes_from_json(&test["out"]); let post_state_root = h256_from_json(&test["postStateRoot"]); let pre = pod_map_from_json(&test["pre"]); let post = pod_map_from_json(&test["post"]); @@ -56,19 +56,14 @@ fn do_json_test(json_data: &[u8]) -> Vec { println!("Transaction: {:?}", t); println!("Env: {:?}", env); - println!("Pre:\n{:?}", pre); - let mut s = State::new_temp(); s.populate_from(pre); - println!("Our-pre:\n{:?}", s.to_pod_map()); s.apply(&env, engine.deref(), &t).unwrap(); let our_post = s.to_pod_map(); if fail_unless(s.root() == &post_state_root) { - println!("EXPECTED:\n{:?}", post); - println!("GOT:\n{:?}", our_post); -// println!("DIFF:\n{:?}", pod_map_diff(post, our_post)); + println!("DIFF:\n{:?}", pod_map_diff(&post, &our_post)); } // TODO: Compare logs.