Fix docs of address_hash (#9463)

This commit is contained in:
Wei Tang 2018-09-04 17:25:22 +08:00 committed by Afri Schoedon
parent 502bacea82
commit c12447c7c5
1 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,8 @@ impl Account {
self.code_hash.clone()
}
/// return the code hash associated with this account.
/// return and cache `keccak(address)`, `address` must be the address of this
/// account.
pub fn address_hash(&self, address: &Address) -> H256 {
let hash = self.address_hash.get();
hash.unwrap_or_else(|| {