pub fn only_owner(&self, caller: &Principal) -> CommonResult<()> {
        self.not_allow_anonymous(caller)?;
        if &self.owner != caller {
            return Err(DFTError::OnlyOwnerAllowCallIt);
        }
        Ok(())
    }
// check if the caller is the owner
check if the caller is the owner
check if the caller is the owner
pub fn only_owner(&self, caller: &Principal) -> CommonResult<()> {
        self.not_allow_anonymous(caller)?;
        if &self.owner != caller {
            return Err(DFTError::OnlyOwnerAllowCallIt);
        }
        Ok(())
    }
pub fn only_owner ( & self , caller : & Principal ) -> CommonResult < ( ) > { self . not_allow_anonymous ( caller ) ? ; if & self . owner != caller { return Err ( DFTError :: OnlyOwnerAllowCallIt ) ; } Ok ( ( ) ) }
check if the caller is the owner
check if the caller is the owner
&self
caller
&Principal
&self
caller
&Principal