deserialized to pod_account conversion

This commit is contained in:
keorn 2016-08-01 13:35:45 +02:00
parent 7dbf23829e
commit e99753d6e3

View File

@ -96,7 +96,7 @@ impl From<ethjson::spec::Account> for PodAccount {
PodAccount {
balance: a.balance.map_or_else(U256::zero, Into::into),
nonce: a.nonce.map_or_else(U256::zero, Into::into),
code: Some(vec![]),
code: a.code.map(|c| c.into()).or(Some(Vec::new())),
storage: BTreeMap::new()
}
}