fixed parsing blockchain file, added default account to rpc tests

This commit is contained in:
debris
2016-03-19 11:02:44 +01:00
parent 1d822132f0
commit 906e9b395e
3 changed files with 10 additions and 5 deletions

View File

@@ -82,7 +82,8 @@ impl From<ethjson::blockchain::Account> for PodAccount {
code: a.code.into(),
storage: a.storage.into_iter().fold(BTreeMap::new(), |mut acc, (key, value)| {
let key: U256 = key.into();
acc.insert(H256::from(key), value.into());
let value: U256 = value.into();
acc.insert(H256::from(key), H256::from(value));
acc
})
}