Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Improve Instruction::new deprecation warning (#15896)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8567b41)

Co-authored-by: Michael Vines <mvines@gmail.com>
  • Loading branch information
mergify[bot] and mvines authored Mar 16, 2021
1 parent 8796376 commit fddba08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fddba08

Please sign in to comment.