Merge branch 'master' of github.com:paritytech/parity into util_error_chain
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user