Rename Bank.last_id() to Bank.last_block_hash()
This commit is contained in:
committed by
Greg Fitzgerald
parent
95cbb8a5c0
commit
2bfad87a5f
@@ -156,7 +156,7 @@ mod tests {
|
||||
let (genesis_block, mint_keypair) = GenesisBlock::new(100);
|
||||
let bank = Bank::new(&genesis_block);
|
||||
let alice = Keypair::new();
|
||||
let last_id = bank.last_id();
|
||||
let last_id = bank.last_block_hash();
|
||||
let tx = SystemTransaction::new_program_account(
|
||||
&mint_keypair,
|
||||
alice.pubkey(),
|
||||
@@ -201,7 +201,7 @@ mod tests {
|
||||
let (genesis_block, mint_keypair) = GenesisBlock::new(100);
|
||||
let bank = Bank::new(&genesis_block);
|
||||
let alice = Keypair::new();
|
||||
let last_id = bank.last_id();
|
||||
let last_id = bank.last_block_hash();
|
||||
let tx = SystemTransaction::new_move(&mint_keypair, alice.pubkey(), 20, last_id, 0);
|
||||
let signature = tx.signatures[0];
|
||||
bank.process_transaction(&tx).unwrap();
|
||||
|
Reference in New Issue
Block a user