pub fn not_allow_anonymous(&self, caller: &Principal) -> CommonResult<()> {
        if caller == &Principal::anonymous() {
            return Err(DFTError::NotAllowAnonymous);
        }
        Ok(())
    }
// check if the caller is anonymous
check if the caller is anonymous
check if the caller is anonymous
pub fn not_allow_anonymous(&self, caller: &Principal) -> CommonResult<()> {
        if caller == &Principal::anonymous() {
            return Err(DFTError::NotAllowAnonymous);
        }
        Ok(())
    }
pub fn not_allow_anonymous ( & self , caller : & Principal ) -> CommonResult < ( ) > { if caller == & Principal :: anonymous ( ) { return Err ( DFTError :: NotAllowAnonymous ) ; } Ok ( ( ) ) }
check if the caller is anonymous
check if the caller is anonymous
&self
caller
&Principal
&self
caller
&Principal