Enable PoD sutff.
This commit is contained in:
parent
649767b911
commit
f9a0cc47a0
@ -51,8 +51,6 @@ impl Account {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
#[cfg(feature = "json-tests")]
|
|
||||||
/// General constructor.
|
/// General constructor.
|
||||||
pub fn from_pod(pod: PodAccount) -> Account {
|
pub fn from_pod(pod: PodAccount) -> Account {
|
||||||
Account {
|
Account {
|
||||||
|
@ -29,7 +29,6 @@ impl PodState {
|
|||||||
pub fn new() -> PodState { Default::default() }
|
pub fn new() -> PodState { Default::default() }
|
||||||
|
|
||||||
/// Contruct a new object from the `m`.
|
/// Contruct a new object from the `m`.
|
||||||
#[cfg(test)]
|
|
||||||
pub fn from(m: BTreeMap<Address, PodAccount>) -> PodState { PodState(m) }
|
pub fn from(m: BTreeMap<Address, PodAccount>) -> PodState { PodState(m) }
|
||||||
|
|
||||||
/// Get the underlying map.
|
/// Get the underlying map.
|
||||||
@ -41,8 +40,6 @@ impl PodState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Drain object to get the underlying map.
|
/// Drain object to get the underlying map.
|
||||||
#[cfg(test)]
|
|
||||||
#[cfg(feature = "json-tests")]
|
|
||||||
pub fn drain(self) -> BTreeMap<Address, PodAccount> { self.0 }
|
pub fn drain(self) -> BTreeMap<Address, PodAccount> { self.0 }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,11 +20,7 @@ use executive::{Executive, TransactOptions};
|
|||||||
use evm::Factory as EvmFactory;
|
use evm::Factory as EvmFactory;
|
||||||
use account_db::*;
|
use account_db::*;
|
||||||
use trace::Trace;
|
use trace::Trace;
|
||||||
#[cfg(test)]
|
|
||||||
#[cfg(feature = "json-tests")]
|
|
||||||
use pod_account::*;
|
use pod_account::*;
|
||||||
#[cfg(test)]
|
|
||||||
#[cfg(feature = "json-tests")]
|
|
||||||
use pod_state::PodState;
|
use pod_state::PodState;
|
||||||
//use state_diff::*; // TODO: uncomment once to_pod() works correctly.
|
//use state_diff::*; // TODO: uncomment once to_pod() works correctly.
|
||||||
|
|
||||||
@ -275,8 +271,6 @@ impl State {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
#[cfg(feature = "json-tests")]
|
|
||||||
/// Populate a PodAccount map from this state.
|
/// Populate a PodAccount map from this state.
|
||||||
pub fn to_pod(&self) -> PodState {
|
pub fn to_pod(&self) -> PodState {
|
||||||
assert!(self.snapshots.borrow().is_empty());
|
assert!(self.snapshots.borrow().is_empty());
|
||||||
|
Loading…
Reference in New Issue
Block a user