Purge remaining last_id (now called block_hash)

This commit is contained in:
Michael Vines
2019-03-02 10:09:09 -08:00
committed by Greg Fitzgerald
parent 2bfad87a5f
commit 258cf21416
39 changed files with 369 additions and 369 deletions

View File

@@ -11,7 +11,7 @@ fn test_local_drone() {
let keypair = Keypair::new();
let to = Keypair::new().pubkey();
let tokens = 50;
let last_id = Hash::new(&to.as_ref());
let block_hash = Hash::new(&to.as_ref());
let expected_instruction = SystemInstruction::CreateAccount {
tokens,
space: 0,
@@ -22,15 +22,15 @@ fn test_local_drone() {
&[to],
system_program::id(),
&expected_instruction,
last_id,
block_hash,
0,
);
expected_tx.sign(&[&keypair], last_id);
expected_tx.sign(&[&keypair], block_hash);
let (sender, receiver) = channel();
run_local_drone(keypair, sender);
let drone_addr = receiver.recv().unwrap();
let result = request_airdrop_transaction(&drone_addr, &to, tokens, last_id);
let result = request_airdrop_transaction(&drone_addr, &to, tokens, block_hash);
assert_eq!(expected_tx, result.unwrap());
}