Function set_contract_balance

Source
pub fn set_contract_balance(addr: Address, new_balance: U256)
Expand description

Sets the balance of a contract to the given balance.

§Note

If a 0 balance is set, this would not fail. This is useful for reaping an account.

§Errors

  • If addr does not exist.
  • If the underlying new_balance type does not match.
  • If the new_balance is less than the existential minimum.