Function ink_env::test::set_account_balance[][src]

pub fn set_account_balance<T>(
    account_id: T::AccountId,
    new_balance: T::Balance
) -> Result<()> where
    T: Environment

Sets the balance of the account to the given balance.

Note

Note that account could refer to either a user account or a smart contract account.

Errors

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