fn new_init(&mut self, initial_supply: Balance) {
            let caller = Self::env().caller();
            self.balances.insert(&caller, &initial_supply);
            Lazy::set(&mut self.total_supply, initial_supply);
            Self::env().emit_event(Transfer {
                from: None,
                to: Some(caller),
                value: initial_supply,
            });
        }
/// Default initializes the ERC-20 contract with the specified initial supply.
Default initializes the ERC-20 contract with the specified initial supply.
Default initializes the ERC - 20 contract with the specified initial supply .
fn new_init(&mut self, initial_supply: Balance) {
            let caller = Self::env().caller();
            self.balances.insert(&caller, &initial_supply);
            Lazy::set(&mut self.total_supply, initial_supply);
            Self::env().emit_event(Transfer {
                from: None,
                to: Some(caller),
                value: initial_supply,
            });
        }
fn new_init ( & mut self , initial_supply : Balance ) { let caller = Self :: env ( ) . caller ( ) ; self . balances . insert ( & caller , & initial_supply ) ; Lazy :: set ( & mut self . total_supply , initial_supply ) ; Self :: env ( ) . emit_event ( Transfer { from : None , to : Some ( caller ) , value : initial_supply , } ) ; }
Default initializes the ERC-20 contract with the specified initial supply.
Default initializes the ERC - 20 contract with the specified initial supply .
&mut self
initial_supply
Balance
&mut self
initial_supply
Balance