Remove Instruction wrapper structs and name functions after enum fields
This commit is contained in:
@ -7,7 +7,7 @@ use solana::fullnode::new_fullnode_for_tests;
|
||||
use solana_client::rpc_client::get_rpc_request_str;
|
||||
use solana_sdk::hash::Hash;
|
||||
use solana_sdk::pubkey::Pubkey;
|
||||
use solana_sdk::system_transaction::SystemTransaction;
|
||||
use solana_sdk::system_transaction;
|
||||
use std::fs::remove_dir_all;
|
||||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
@ -41,7 +41,7 @@ fn test_rpc_send_tx() {
|
||||
let blockhash = Hash::new(&blockhash_vec);
|
||||
|
||||
info!("blockhash: {:?}", blockhash);
|
||||
let tx = SystemTransaction::new_transfer(&alice, &bob_pubkey, 20, blockhash, 0);
|
||||
let tx = system_transaction::transfer(&alice, &bob_pubkey, 20, blockhash, 0);
|
||||
let serial_tx = serialize(&tx).unwrap();
|
||||
|
||||
let client = reqwest::Client::new();
|
||||
|
Reference in New Issue
Block a user