From a2a84f8ffeb479376f3b9fd27f0c8bd4ad7b166c Mon Sep 17 00:00:00 2001 From: norwnd Date: Thu, 7 Dec 2023 10:58:15 +0300 Subject: [PATCH] rename param in do_process_program_upgrade --- cli/src/program.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/program.rs b/cli/src/program.rs index 9ead21d774d3a1..e91f1069b067df 100644 --- a/cli/src/program.rs +++ b/cli/src/program.rs @@ -2131,7 +2131,7 @@ fn do_process_program_upgrade( program_len: usize, min_rent_exempt_program_data_balance: u64, fee_payer_signer: &dyn Signer, - program_pubkey: &Pubkey, + program_id: &Pubkey, upgrade_authority: &dyn Signer, buffer_pubkey: &Pubkey, buffer_signer: Option<&dyn Signer>, @@ -2209,7 +2209,7 @@ fn do_process_program_upgrade( // Create and add final message let final_message = Message::new_with_blockhash( &[bpf_loader_upgradeable::upgrade( - program_pubkey, + program_id, buffer_pubkey, &upgrade_authority.pubkey(), &fee_payer_signer.pubkey(), @@ -2244,7 +2244,7 @@ fn do_process_program_upgrade( )?; let program_id = CliProgramId { - program_id: program_pubkey.to_string(), + program_id: program_id.to_string(), }; Ok(config.output_format.formatted_string(&program_id)) }