Improve Instruction::new deprecation warning
This commit is contained in:
parent
430ed6d774
commit
8567b41d5f
|
@ -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<T: Serialize>(program_id: Pubkey, data: &T, accounts: Vec<AccountMeta>) -> Self {
|
||||
Self::new_with_bincode(program_id, data, accounts)
|
||||
|
|
Loading…
Reference in New Issue