own_code_hash

Function own_code_hash 

Source
pub fn own_code_hash<E>() -> Result<E::Hash>
where E: Environment,
Expand description

Retrieves the code hash of the currently executing contract.

ยงErrors

If the returned value cannot be properly decoded.