Move src/ into core/src. Top-level crate is now called solana-workspace
This commit is contained in:
11
core/src/test_tx.rs
Normal file
11
core/src/test_tx.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use solana_sdk::hash::Hash;
|
||||
use solana_sdk::signature::{Keypair, KeypairUtil};
|
||||
use solana_sdk::system_transaction::SystemTransaction;
|
||||
use solana_sdk::transaction::Transaction;
|
||||
|
||||
pub fn test_tx() -> Transaction {
|
||||
let keypair1 = Keypair::new();
|
||||
let pubkey1 = keypair1.pubkey();
|
||||
let zero = Hash::default();
|
||||
SystemTransaction::new_account(&keypair1, pubkey1, 42, zero, 0)
|
||||
}
|
Reference in New Issue
Block a user