Function ink_env::account_id

source ·
pub fn account_id<E>() -> E::AccountId
where E: Environment,
Expand description

Returns the account ID of the executed contract.

§Note

This method was formerly known as address.

§Errors

If the returned value cannot be properly decoded.