pub(crate) fn is_mint(&self, key: Key) -> bool {
        let hash = match self.context.get_system_contract(MINT) {
            Ok(hash) => hash,
            Err(_) => {
                error!("Failed to get system mint contract hash");
                return false;
            }
        };
        key.into_hash() == Some(hash.value())
    }
/// Checks if current context is the mint system contract.
Checks if current context is the mint system contract.
Checks if current context is the mint system contract .
pub(crate) fn is_mint(&self, key: Key) -> bool {
        let hash = match self.context.get_system_contract(MINT) {
            Ok(hash) => hash,
            Err(_) => {
                error!("Failed to get system mint contract hash");
                return false;
            }
        };
        key.into_hash() == Some(hash.value())
    }
pub ( crate ) fn is_mint ( & self , key : Key ) -> bool { let hash = match self . context . get_system_contract ( MINT ) { Ok ( hash ) => hash , Err ( _ ) => { error ! ( " " ) ; return false ; } } ; key . into_hash ( ) == Some ( hash . value ( ) ) }
Checks if current context is the mint system contract.
Checks if current context is the mint system contract .
&self
key
Key
&self
key
Key