finished blockchain test deserialization

This commit is contained in:
debris
2016-03-15 18:23:59 +01:00
committed by arkpar
parent 69d89583ca
commit 24993b8d4e
4 changed files with 86 additions and 73 deletions

View File

@@ -18,15 +18,15 @@
use std::collections::BTreeMap;
use std::ops::Deref;
use hash::Hash;
use hash::Address;
use blockchain::account::Account;
/// Blockchain test state deserializer.
#[derive(Debug, PartialEq, Deserialize)]
pub struct State(BTreeMap<Hash, Account>);
pub struct State(BTreeMap<Address, Account>);
impl Deref for State {
type Target = BTreeMap<Hash, Account>;
type Target = BTreeMap<Address, Account>;
fn deref(&self) -> &Self::Target {
&self.0