pub fn encode_add_validator_and_reconfigure_script(
    sliding_nonce: u64,
    validator_name: Vec<u8>,
    validator_address: AccountAddress,
) -> Script {
    Script::new(
        ADD_VALIDATOR_AND_RECONFIGURE_CODE.to_vec(),
        vec![],
        vec![
            TransactionArgument::U64(sliding_nonce),
            TransactionArgument::U8Vector(validator_name),
            TransactionArgument::Address(validator_address),
        ],
    )
}
/// Add `new_validator` to the validator set.
/// Fails if the `new_validator` address is already in the validator set
/// or does not have a `ValidatorConfig` resource stored at the address.
/// Emits a NewEpochEvent.
Add `new_validator` to the validator set.
Fails if the `new_validator` address is already in the validator set
or does not have a `ValidatorConfig` resource stored at the address.
Add ` new_validator ` to the validator set . Fails if the ` new_validator ` address is already in the validator set or does not have a ` ValidatorConfig ` resource stored at the address .
pub fn encode_add_validator_and_reconfigure_script(
    sliding_nonce: u64,
    validator_name: Vec<u8>,
    validator_address: AccountAddress,
) -> Script {
    Script::new(
        ADD_VALIDATOR_AND_RECONFIGURE_CODE.to_vec(),
        vec![],
        vec![
            TransactionArgument::U64(sliding_nonce),
            TransactionArgument::U8Vector(validator_name),
            TransactionArgument::Address(validator_address),
        ],
    )
}
pub fn encode_add_validator_and_reconfigure_script ( sliding_nonce : u64 , validator_name : Vec < u8 > , validator_address : AccountAddress , ) -> Script { Script :: new ( ADD_VALIDATOR_AND_RECONFIGURE_CODE . to_vec ( ) , vec ! [ ] , vec ! [ TransactionArgument U64 ( sliding_nonce ) TransactionArgument U8Vector ( validator_name ) TransactionArgument Address ( validator_address ) ] , ) }
Add `new_validator` to the validator set.
Add ` new_validator ` to the validator set .
sliding_nonce
u64
validator_name
Vec<u8>
validator_address
AccountAddress
sliding_nonce
u64
validator_name
Vec<u8>
validator_address
AccountAddress