From 05646d72b8a3b1d3156e1ef845251ba4f5ebc542 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 27 Feb 2019 22:32:00 -0800 Subject: [PATCH] Remove unnecessary fetching of a new last_id --- wallet/src/wallet.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/wallet/src/wallet.rs b/wallet/src/wallet.rs index c63d8d25ff..4256072245 100644 --- a/wallet/src/wallet.rs +++ b/wallet/src/wallet.rs @@ -447,7 +447,6 @@ fn process_deploy( send_and_confirm_transactions(&rpc_client, write_transactions, &program_id)?; trace!("Finalizing program account"); - let last_id = get_last_id(&rpc_client)?; let mut tx = LoaderTransaction::new_finalize(&program_id, bpf_loader::id(), last_id, 0); send_and_confirm_transaction(&rpc_client, &mut tx, &program_id).map_err(|_| { WalletError::DynamicProgramError("Program finalize transaction failed".to_string())