From 8567b41d5f09da40bf102974cc948c88e21dc875 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 15 Mar 2021 14:59:10 -0700 Subject: [PATCH] Improve Instruction::new deprecation warning --- 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)