fn transfer_to_existing_account(
        &mut self,
        to: Option<AccountHash>,
        source: URef,
        target: URef,
        amount: U512,
        id: Option<u64>,
    ) -> Result<TransferResult, Error> {
        let mint_contract_key = self.get_mint_contract()?;

        // This appears to be a load-bearing use of `RuntimeContext::insert_uref`.
        self.context.insert_uref(target);

        match self.mint_transfer(mint_contract_key, to, source, target, amount, id)? {
            Ok(()) => Ok(Ok(TransferredTo::ExistingAccount)),
            Err(error) => Ok(Err(error.into())),
        }
    }
/// Transferring a given amount of motes from the given source purse to the
/// new account's purse. Requires that the [`URef`]s have already
/// been created by the mint contract (or are the genesis account's).
Transferring a given amount of motes from the given source purse to the
new account's purse. Requires that the [`URef`]s have already
been created by the mint contract (or are the genesis account's).
Transferring a given amount of motes from the given source purse to the new account ' s purse . Requires that the [ ` URef ` ] s have already been created by the mint contract ( or are the genesis account ' s ) .
fn transfer_to_existing_account(
        &mut self,
        to: Option<AccountHash>,
        source: URef,
        target: URef,
        amount: U512,
        id: Option<u64>,
    ) -> Result<TransferResult, Error> {
        let mint_contract_key = self.get_mint_contract()?;
        // This appears to be a load-bearing use of `RuntimeContext::insert_uref`.
        self.context.insert_uref(target);
        match self.mint_transfer(mint_contract_key, to, source, target, amount, id)? {
            Ok(()) => Ok(Ok(TransferredTo::ExistingAccount)),
            Err(error) => Ok(Err(error.into())),
        }
    }
fn transfer_to_existing_account ( & mut self , to : Option < AccountHash > , source : URef , target : URef , amount : U512 , id : Option < u64 > , ) -> Result < TransferResult , Error > { let mint_contract_key = self . get_mint_contract ( ) ? ; // This appears to be a load-bearing use of `RuntimeContext::insert_uref`. self . context . insert_uref ( target ) ; match self . mint_transfer ( mint_contract_key , to , source , target , amount , id ) ? { Ok ( ( ) ) => Ok ( Ok ( TransferredTo :: ExistingAccount ) ) , Err ( error ) => Ok ( Err ( error . into ( ) ) ) , } }
Transferring a given amount of motes from the given source purse to the
new account's purse.
Transferring a given amount of motes from the given source purse to the new account ' s purse .
&mut self
to
Option<AccountHash>
source
URef
target
URef
amount
U512
id
Option<u64>
&mut self
to
Option<AccountHash>
source
URef
target
URef
amount
U512
id
Option<u64>