From fddba085713d2c0c7d13765d732b315a2ca08c3d Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 16 Mar 2021 05:18:31 +0000 Subject: [PATCH] Improve Instruction::new deprecation warning (#15896) (cherry picked from commit 8567b41d5f09da40bf102974cc948c88e21dc875) Co-authored-by: Michael Vines --- sdk/program/src/instruction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/program/src/instruction.rs b/sdk/program/src/instruction.rs index 8a67868a2f..ff29c14e13 100644 --- a/sdk/program/src/instruction.rs +++ b/sdk/program/src/instruction.rs @@ -216,7 +216,7 @@ pub struct Instruction { impl Instruction { #[deprecated( since = "1.6.0", - note = "Please use another `Instruction constructor instead" + note = "Please use another Instruction constructor instead, such as `Instruction::new_with_bincode`" )] pub fn new(program_id: Pubkey, data: &T, accounts: Vec) -> Self { Self::new_with_bincode(program_id, data, accounts)