pub(crate) fn charge_system_contract_call<T>(&mut self, call_cost: T) -> Result<(), Error>
    where
        T: Into<Gas>,
    {
        if self.account.account_hash() == PublicKey::System.to_account_hash() {
            // Don't try to charge a system account for calling a system contract's entry point.
            // This will make sure that (for example) calling a mint's transfer from within auction
            // wouldn't try to incur cost to system account.
            return Ok(());
        }
        let amount: Gas = call_cost.into();
        self.charge_gas(amount)
    }
/// Charges gas for using a host system contract's entrypoint.
Charges gas for using a host system contract's entrypoint.
Charges gas for using a host system contract ' s entrypoint .
pub(crate) fn charge_system_contract_call<T>(&mut self, call_cost: T) -> Result<(), Error>
    where
        T: Into<Gas>,
    {
        if self.account.account_hash() == PublicKey::System.to_account_hash() {
            // Don't try to charge a system account for calling a system contract's entry point.
            // This will make sure that (for example) calling a mint's transfer from within auction
            // wouldn't try to incur cost to system account.
            return Ok(());
        }
        let amount: Gas = call_cost.into();
        self.charge_gas(amount)
    }
pub ( crate ) fn charge_system_contract_call < T > ( & mut self , call_cost : T ) -> Result < ( ) , Error > where T : Into < Gas > , { if self . account . account_hash ( ) == PublicKey :: System . to_account_hash ( ) { // Don't try to charge a system account for calling a system contract's entry point. // This will make sure that (for example) calling a mint's transfer from within auction // wouldn't try to incur cost to system account. return Ok ( ( ) ) ; } let amount : Gas = call_cost . into ( ) ; self . charge_gas ( amount ) }
Charges gas for using a host system contract's entrypoint.
Charges gas for using a host system contract ' s entrypoint .
&mut self
call_cost
T
&mut self
call_cost
T