fn mint(&mut self, account: AccountId, amount: Balance) {
        assert!(account != ZERO_ADDRESS.into(), "{}", Erc20Error::ZeroRecipientAddress.as_ref());

        let mut new_balance = self.balance_of(account);
        new_balance += amount;
        self._balances_mut().insert(account, new_balance);
        *self._supply_mut() = Lazy::new(self.total_supply() + amount);
        self.emit_transfer_event(None, Some(account), amount);
    }
/// Creates `amount` tokens and assigns them to `account`, increasing the total supply.
///
/// On success a `Transfer` event is emitted.
///
/// # Errors
///
/// Panics `ZeroRecipientAddress` error if recipient's address is zero.
Creates `amount` tokens and assigns them to `account`, increasing the total supply.
On success a `Transfer` event is emitted.
Creates ` amount ` tokens and assigns them to ` account ` increasing the total supply . On success a ` Transfer ` event is emitted .
fn mint(&mut self, account: AccountId, amount: Balance) {
        assert!(account != ZERO_ADDRESS.into(), "{}", Erc20Error::ZeroRecipientAddress.as_ref());
        let mut new_balance = self.balance_of(account);
        new_balance += amount;
        self._balances_mut().insert(account, new_balance);
        *self._supply_mut() = Lazy::new(self.total_supply() + amount);
        self.emit_transfer_event(None, Some(account), amount);
    }
fn mint ( & mut self , account : AccountId , amount : Balance ) { assert ! ( account ZERO_ADDRESS into ( ) " " Erc20Error ZeroRecipientAddress as_ref ( ) ) ; let mut new_balance = self . balance_of ( account ) ; new_balance += amount ; self . _balances_mut ( ) . insert ( account , new_balance ) ; * self . _supply_mut ( ) = Lazy :: new ( self . total_supply ( ) + amount ) ; self . emit_transfer_event ( None , Some ( account ) , amount ) ; }
Creates `amount` tokens and assigns them to `account`, increasing the total supply.
Creates ` amount ` tokens and assigns them to ` account ` increasing the total supply .
&mut self
account
AccountId
amount
Balance
&mut self
account
AccountId
amount
Balance
errors
Panics `ZeroRecipientAddress` error if recipient's address is zero.
Panics ` ZeroRecipientAddress ` error if recipient ' s address is zero .