fn init_cap(&mut self, cap: Balance) -> Result<(), PSP22Error> {
            if cap <= 0 {
                return Err(PSP22Error::Custom(String::from("Cap must be above 0")))
            }
            self.cap = cap;
            Ok(())
        }
/// Initializes the token's cap
Initializes the token's cap
Initializes the token ' s cap
fn init_cap(&mut self, cap: Balance) -> Result<(), PSP22Error> {
            if cap <= 0 {
                return Err(PSP22Error::Custom(String::from("Cap must be above 0")))
            }
            self.cap = cap;
            Ok(())
        }
fn init_cap ( & mut self , cap : Balance ) -> Result < ( ) , PSP22Error > { if cap <= 0 { return Err ( PSP22Error :: Custom ( String :: from ( " " ) ) ) } self . cap = cap ; Ok ( ( ) ) }
Initializes the token's cap
Initializes the token ' s cap
&mut self
cap
Balance
&mut self
cap
Balance