Remove unnecessary fetching of a new last_id

This commit is contained in:
Michael Vines 2019-02-27 22:32:00 -08:00
parent 7ccd601100
commit 05646d72b8
1 changed files with 0 additions and 1 deletions

View File

@ -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())