/// Returns a transaction to add a new validator
Returns a transaction to add a new validator
Returns a transaction to add a new validator
pub fn add_validator_txn(
    sender: &Account,
    new_validator: &Account,
    seq_num: u64,
) -> SignedTransaction {
    let mut args: Vec<TransactionArgument> = Vec::new();
    args.push(TransactionArgument::Address(*new_validator.address()));
    sender.create_signed_txn_with_args(
        StdlibScript::AddValidator.compiled_bytes().into_vec(),
        vec![],
        args,
        seq_num,
        gas_costs::TXN_RESERVED * 2,
        0,
        LBR_NAME.to_owned(),
    )
}
pub fn add_validator_txn ( sender : & Account , new_validator : & Account , seq_num : u64 , ) -> SignedTransaction { let mut args : Vec < TransactionArgument > = Vec :: new ( ) ; args . push ( TransactionArgument :: Address ( * new_validator . address ( ) ) ) ; sender . create_signed_txn_with_args ( StdlibScript :: AddValidator . compiled_bytes ( ) . into_vec ( ) , vec ! [ ] , args , seq_num , gas_costs :: TXN_RESERVED * 2 , 0 , LBR_NAME . to_owned ( ) , ) }
Returns a transaction to add a new validator
Returns a transaction to add a new validator
sender
&Account
new_validator
&Account
seq_num
u64