Merge remote-tracking branch 'origin/main' into dev
This commit is contained in:
@@ -184,7 +184,7 @@ impl TestRunner {
|
||||
return Vec::new();
|
||||
}
|
||||
}
|
||||
super::state::json_chain_test(&test, &path, &json, &mut |_, _| {})
|
||||
super::state::json_state_test(&test, &path, &json, &mut |_, _| {})
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@ use ethjson;
|
||||
use pod_state::PodState;
|
||||
use std::path::Path;
|
||||
use trace;
|
||||
use types::transaction::SignedTransaction;
|
||||
use vm::EnvInfo;
|
||||
|
||||
fn skip_test(
|
||||
@@ -42,7 +41,7 @@ fn skip_test(
|
||||
})
|
||||
}
|
||||
|
||||
pub fn json_chain_test<H: FnMut(&str, HookType)>(
|
||||
pub fn json_state_test<H: FnMut(&str, HookType)>(
|
||||
state_test: ðjson::test::StateTests,
|
||||
path: &Path,
|
||||
json_data: &[u8],
|
||||
@@ -91,8 +90,7 @@ pub fn json_chain_test<H: FnMut(&str, HookType)>(
|
||||
}
|
||||
|
||||
let post_root: H256 = state.hash.into();
|
||||
let transaction: SignedTransaction =
|
||||
multitransaction.select(&state.indexes).into();
|
||||
let transaction = multitransaction.select(&state.indexes);
|
||||
|
||||
let result = || -> Result<_, EvmTestError> {
|
||||
Ok(EvmTestClient::from_pod_state(&spec, pre.clone())?.transact(
|
||||
|
||||
Reference in New Issue
Block a user