Function ink_env::test::get_account_balance

source ·
pub fn get_account_balance<T>(account_id: T::AccountId) -> Result<T::Balance>
where T: Environment<Balance = u128>,
Expand description

Returns the balance of the account.

§Note

Note that account could refer to either a user account or a smart contract account. This returns the same as env::api::balance if given the account id of the currently executed smart contract.

§Errors

  • If account does not exist.
  • If the underlying account type does not match.