Move src/ into core/src. Top-level crate is now called solana-workspace

This commit is contained in:
Michael Vines
2019-03-01 19:00:43 -08:00
parent 7b849b042c
commit 5f5d779ee1
79 changed files with 106 additions and 45 deletions

11
core/src/test_tx.rs Normal file
View 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)
}