/// Craft TXN request to mint receiver with some libra coins.
Craft TXN request to mint receiver with some libra coins.
Craft TXN request to mint receiver with some libra coins .
fn gen_mint_txn_request(
    faucet_account: &mut AccountData,
    receiver: &AccountAddress,
) -> Result<LoadRequest> {
    let program = vm_genesis::encode_mint_program(receiver, FREE_LUNCH);
    let signer = faucet_account
        .key_pair
        .as_ref()
        .expect("Failed load keypair from faucet")
        .clone();
    gen_submit_transaction_request(program, faucet_account, &signer)
}
fn gen_mint_txn_request ( faucet_account : & mut AccountData , receiver : & AccountAddress , ) -> Result < LoadRequest > { let program = vm_genesis :: encode_mint_program ( receiver , FREE_LUNCH ) ; let signer = faucet_account . key_pair . as_ref ( ) . expect ( " " ) . clone ( ) ; gen_submit_transaction_request ( program , faucet_account , & signer ) }
Craft TXN request to mint receiver with some libra coins.
Craft TXN request to mint receiver with some libra coins .
faucet_account
&mut AccountData
receiver
&AccountAddress