transact substracts tx_gas

This commit is contained in:
debris
2016-01-14 01:18:44 +01:00
parent dc9625de62
commit 53868efb4d
2 changed files with 8 additions and 3 deletions

View File

@@ -53,9 +53,11 @@ fn do_json_test(json_data: &[u8]) -> Vec<String> {
let mut s = State::new_temp();
s.populate_from(pre);
Executive::new(&mut s, &env, engine.deref()).transact(&t).unwrap();
let e = Executive::new(&mut s, &env, engine.deref()).transact(&t).unwrap();
println!("executed: {:?}", e);
let our_post = s.to_pod_map();
s.commit();
if fail_unless(s.root() == &post_state_root) {
println!("FAILED {}. Diff:\n{}", name, pod_map_diff(&post, &our_post));
}