Merge pull request #1790 from ethcore/spec-code

Allow code from spec json
This commit is contained in:
Nikolay Volf
2016-08-01 21:41:46 +03:00
committed by GitHub
3 changed files with 19 additions and 7 deletions

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(Into::into).or(Some(Vec::new())),
storage: BTreeMap::new()
}
}