Additional data in EVMTestClient (#7964)

* Small changes to allow better re-use of EvmTestClient

* Expose logs.

* add outcome to TransactResult

* Fix submodule.

* Fix json tests.

* Fix evmbin.
This commit is contained in:
Tomasz Drwięga
2018-03-13 12:54:17 +01:00
committed by Marek Kotewicz
parent c2bd1a0e76
commit 102bc7809f
3 changed files with 50 additions and 15 deletions

View File

@@ -74,7 +74,7 @@ pub fn run_action<T: Informant>(
informant.set_gas(params.gas);
run(spec, params.gas, None, |mut client| {
let result = client
.call(params, &mut informant)
.call(params, &mut trace::NoopTracer, &mut informant)
.map(|r| (0.into(), r.gas_left, r.return_data.to_vec()));
(result, informant.drain())
})
@@ -106,7 +106,7 @@ pub fn run_transaction<T: Informant>(
informant.set_gas(env_info.gas_limit);
let result = run(spec, env_info.gas_limit, pre_state, |mut client| {
let result = client.transact(env_info, transaction, informant);
let result = client.transact(env_info, transaction, trace::NoopTracer, informant);
match result {
TransactResult::Ok { state_root, .. } if state_root != post_root => {
(Err(EvmTestError::PostCondition(format!(