From 62736b6ddf5ba7cf854df96913fc295d06fe3e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Thu, 30 Jan 2025 13:33:06 +0000 Subject: [PATCH] Adds deprecation warnings in CLI. --- cli/src/program.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cli/src/program.rs b/cli/src/program.rs index efe6e62422f9ab..dbf3691f0bfc7b 100644 --- a/cli/src/program.rs +++ b/cli/src/program.rs @@ -1316,6 +1316,17 @@ fn process_program_deploy( fetch_feature_set(&rpc_client)? }; + if !skip_feature_verification { + if feature_set.is_active(&solana_feature_set::enable_loader_v4::id()) { + warn!("Loader-v4 is available now. Please migrate your program."); + } + if do_initial_deploy + && feature_set.is_active(&solana_feature_set::disable_new_loader_v3_deployments::id()) + { + return Err(format!("No new programs can be deployed on loader-v3. Please use the program-v4 subcommand instead.").into()); + } + } + let (program_data, program_len, buffer_program_data) = if let Some(program_location) = program_location { let program_data = read_and_verify_elf(program_location, feature_set)?;