/// Returns a transaction to create a validator account with the given arguments.
Returns a transaction to create a validator account with the given arguments.
Returns a transaction to create a validator account with the given arguments .
pub fn create_validator_account_txn(
    sender: &Account,
    new_account: &Account,
    seq_num: u64,
) -> SignedTransaction {
    let mut args: Vec<TransactionArgument> = Vec::new();
    args.push(TransactionArgument::Address(*new_account.address()));
    args.push(TransactionArgument::U8Vector(new_account.auth_key_prefix()));
    sender.create_signed_txn_with_args(
        StdlibScript::CreateValidatorAccount
            .compiled_bytes()
            .into_vec(),
        vec![],
        args,
        seq_num,
        gas_costs::TXN_RESERVED * 3,
        0,
        LBR_NAME.to_owned(),
    )
}
pub fn create_validator_account_txn ( sender : & Account , new_account : & Account , seq_num : u64 , ) -> SignedTransaction { let mut args : Vec < TransactionArgument > = Vec :: new ( ) ; args . push ( TransactionArgument :: Address ( * new_account . address ( ) ) ) ; args . push ( TransactionArgument :: U8Vector ( new_account . auth_key_prefix ( ) ) ) ; sender . create_signed_txn_with_args ( StdlibScript :: CreateValidatorAccount . compiled_bytes ( ) . into_vec ( ) , vec ! [ ] , args , seq_num , gas_costs :: TXN_RESERVED * 3 , 0 , LBR_NAME . to_owned ( ) , ) }
Returns a transaction to create a validator account with the given arguments.
Returns a transaction to create a validator account with the given arguments .
sender
&Account
new_account
&Account
seq_num
u64