Replace transaction traits with structs
Also: * SystemTransaction::new -> new_account * SystemTransaction::new_create -> new_program_account
This commit is contained in:
@ -79,7 +79,7 @@ fn create_and_fund_vote_account(
|
||||
let last_id = client.get_last_id();
|
||||
info!("create_and_fund_vote_account last_id={:?}", last_id);
|
||||
let transaction =
|
||||
VoteTransaction::vote_account_new(node_keypair, vote_account, last_id, 1, 1);
|
||||
VoteTransaction::new_account(node_keypair, vote_account, last_id, 1, 1);
|
||||
|
||||
match client.transfer_signed(&transaction) {
|
||||
Ok(signature) => {
|
||||
|
Reference in New Issue
Block a user