Minor simplification
This commit is contained in:
parent
e99753d6e3
commit
de531c9a1e
@ -96,7 +96,7 @@ impl From<ethjson::spec::Account> for PodAccount {
|
|||||||
PodAccount {
|
PodAccount {
|
||||||
balance: a.balance.map_or_else(U256::zero, Into::into),
|
balance: a.balance.map_or_else(U256::zero, Into::into),
|
||||||
nonce: a.nonce.map_or_else(U256::zero, Into::into),
|
nonce: a.nonce.map_or_else(U256::zero, Into::into),
|
||||||
code: a.code.map(|c| c.into()).or(Some(Vec::new())),
|
code: a.code.map(Into::into).or(Some(Vec::new())),
|
||||||
storage: BTreeMap::new()
|
storage: BTreeMap::new()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user