fn mint_mint(&mut self, mint_contract_hash: ContractHash, amount: U512) -> Result<URef, Error> {
        let gas_counter = self.gas_counter();
        let runtime_args = {
            let mut runtime_args = RuntimeArgs::new();
            runtime_args.insert(mint::ARG_AMOUNT, amount)?;
            runtime_args
        };
        let call_result = self.call_contract(mint_contract_hash, mint::METHOD_MINT, runtime_args);
        self.set_gas_counter(gas_counter);

        let result: Result<URef, mint::Error> = call_result?.into_t()?;
        Ok(result.map_err(system::Error::from)?)
    }
/// Calls the `mint` method on the mint contract at the given mint
/// contract key
Calls the `mint` method on the mint contract at the given mint
contract key
Calls the ` mint ` method on the mint contract at the given mint contract key
fn mint_mint(&mut self, mint_contract_hash: ContractHash, amount: U512) -> Result<URef, Error> {
        let gas_counter = self.gas_counter();
        let runtime_args = {
            let mut runtime_args = RuntimeArgs::new();
            runtime_args.insert(mint::ARG_AMOUNT, amount)?;
            runtime_args
        };
        let call_result = self.call_contract(mint_contract_hash, mint::METHOD_MINT, runtime_args);
        self.set_gas_counter(gas_counter);
        let result: Result<URef, mint::Error> = call_result?.into_t()?;
        Ok(result.map_err(system::Error::from)?)
    }
fn mint_mint ( & mut self , mint_contract_hash : ContractHash , amount : U512 ) -> Result < URef , Error > { let gas_counter = self . gas_counter ( ) ; let runtime_args = { let mut runtime_args = RuntimeArgs :: new ( ) ; runtime_args . insert ( mint :: ARG_AMOUNT , amount ) ? ; runtime_args } ; let call_result = self . call_contract ( mint_contract_hash , mint :: METHOD_MINT , runtime_args ) ; self . set_gas_counter ( gas_counter ) ; let result : Result < URef , mint :: Error > = call_result ? . into_t ( ) ? ; Ok ( result . map_err ( system :: Error :: from ) ? ) }
Calls the `mint` method on the mint contract at the given mint
contract key
Calls the ` mint ` method on the mint contract at the given mint contract key
&mut self
mint_contract_hash
ContractHash
amount
U512
&mut self
mint_contract_hash
ContractHash
amount
U512