Merge branch 'master' of github.com:paritytech/parity into util_error_chain

This commit is contained in:
debris
2017-09-05 12:38:15 +02:00
15 changed files with 307 additions and 3 deletions

View File

@@ -1446,6 +1446,10 @@ impl BlockChainClient for Client {
self.state_at(id).and_then(|s| s.code(address).ok()).map(|c| c.map(|c| (&*c).clone()))
}
fn code_hash(&self, address: &Address, id: BlockId) -> Option<H256> {
self.state_at(id).and_then(|s| s.code_hash(address).ok())
}
fn balance(&self, address: &Address, id: BlockId) -> Option<U256> {
self.state_at(id).and_then(|s| s.balance(address).ok())
}