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();
|
||||
|
@ -18,7 +18,7 @@ use solana::streamer;
|
||||
use solana::tvu::{Sockets, Tvu};
|
||||
use solana_sdk::genesis_block::GenesisBlock;
|
||||
use solana_sdk::signature::{Keypair, KeypairUtil};
|
||||
use solana_sdk::system_transaction::SystemTransaction;
|
||||
use solana_sdk::system_transaction;
|
||||
use std::fs::remove_dir_all;
|
||||
use std::net::UdpSocket;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
@ -140,7 +140,7 @@ fn test_replay() {
|
||||
let entry0 = next_entry_mut(&mut cur_hash, i, vec![]);
|
||||
let entry_tick0 = next_entry_mut(&mut cur_hash, i + 1, vec![]);
|
||||
|
||||
let tx0 = SystemTransaction::new_user_account(
|
||||
let tx0 = system_transaction::create_user_account(
|
||||
&mint_keypair,
|
||||
&bob_keypair.pubkey(),
|
||||
transfer_amount,
|
||||
|
Reference in New Issue
Block a user