cleanup, warnings
This commit is contained in:
parent
2982c7973e
commit
dabce9ab45
@ -265,12 +265,10 @@ mod tests {
|
|||||||
use common::*;
|
use common::*;
|
||||||
use state::*;
|
use state::*;
|
||||||
use engine::*;
|
use engine::*;
|
||||||
use executive::*;
|
use evm::{Ext};
|
||||||
use evm::{self, Schedule, Ext, ContractCreateResult, MessageCallResult};
|
|
||||||
use substate::*;
|
use substate::*;
|
||||||
use tests::helpers::*;
|
use tests::helpers::*;
|
||||||
use super::*;
|
use super::*;
|
||||||
use spec::*;
|
|
||||||
|
|
||||||
fn get_test_origin() -> OriginInfo {
|
fn get_test_origin() -> OriginInfo {
|
||||||
OriginInfo {
|
OriginInfo {
|
||||||
@ -295,7 +293,6 @@ mod tests {
|
|||||||
|
|
||||||
struct TestSetup {
|
struct TestSetup {
|
||||||
state: GuardedTempResult<State>,
|
state: GuardedTempResult<State>,
|
||||||
spec: Spec,
|
|
||||||
engine: Box<Engine>,
|
engine: Box<Engine>,
|
||||||
sub_state: Substate,
|
sub_state: Substate,
|
||||||
env_info: EnvInfo
|
env_info: EnvInfo
|
||||||
@ -303,11 +300,9 @@ mod tests {
|
|||||||
|
|
||||||
impl TestSetup {
|
impl TestSetup {
|
||||||
fn new() -> TestSetup {
|
fn new() -> TestSetup {
|
||||||
let spec = get_test_spec();
|
|
||||||
TestSetup {
|
TestSetup {
|
||||||
state: get_temp_state(),
|
state: get_temp_state(),
|
||||||
spec: get_test_spec(),
|
engine: get_test_spec().to_engine().unwrap(),
|
||||||
engine: spec.to_engine().unwrap(),
|
|
||||||
sub_state: Substate::new(),
|
sub_state: Substate::new(),
|
||||||
env_info: get_test_env_info()
|
env_info: get_test_env_info()
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn created() {
|
fn created() {
|
||||||
let mut sub_state = Substate::new();
|
let sub_state = Substate::new();
|
||||||
assert_eq!(sub_state.suicides.len(), 0);
|
assert_eq!(sub_state.suicides.len(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user