Function ink_env::test::get_account_balance [−][src]
pub fn get_account_balance<T>(account_id: T::AccountId) -> Result<T::Balance> where
T: Environment,
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.