Function ink_env::code_hash

source ·
pub fn code_hash<E>(account: &E::AccountId) -> Result<E::Hash>where
    E: Environment,
Expand description

Retrieves the code hash of the contract at the specified account id.

Errors

  • If no code hash was found for the specified account id.
  • If the returned value cannot be properly decoded.