pub fn add_contract_account<T>(
        &mut self,
        account_id: T::AccountId,
        initial_balance: T::Balance,
        rent_allowance: T::Balance,
    ) where
        T: EnvTypes,
    {
        self.accounts.insert(
            OffAccountId::new(&account_id),
            Account {
                balance: OffBalance::new(&initial_balance),
                kind: AccountKind::Contract(ContractAccount::new::<T>(rent_allowance)),
            },
        );
    }
/// Creates a new contract account.
Creates a new contract account.
Creates a new contract account .
pub fn add_contract_account<T>(
        &mut self,
        account_id: T::AccountId,
        initial_balance: T::Balance,
        rent_allowance: T::Balance,
    ) where
        T: EnvTypes,
    {
        self.accounts.insert(
            OffAccountId::new(&account_id),
            Account {
                balance: OffBalance::new(&initial_balance),
                kind: AccountKind::Contract(ContractAccount::new::<T>(rent_allowance)),
            },
        );
    }
pub fn add_contract_account < T > ( & mut self , account_id : T :: AccountId , initial_balance : T :: Balance , rent_allowance : T :: Balance , ) where T : EnvTypes , { self . accounts . insert ( OffAccountId :: new ( & account_id ) , Account { balance : OffBalance :: new ( & initial_balance ) , kind : AccountKind :: Contract ( ContractAccount :: new :: < T > ( rent_allowance ) ) , } , ) ; }
Creates a new contract account.
Creates a new contract account .
&mut self
account_id
T::AccountId
initial_balance
T::Balance
rent_allowance
T::Balance
&mut self
account_id
T::AccountId
initial_balance
T::Balance
rent_allowance
T::Balance