Deprecate Instruction::new (#15695)
This commit is contained in:
@ -95,7 +95,7 @@ pub fn transfer(from_account: Pubkey, to_account: Pubkey, lamports: u64) -> Inst
|
||||
AccountMeta::new(from_pubkey, true),
|
||||
AccountMeta::new(to_pubkey, false),
|
||||
];
|
||||
Instruction::new(
|
||||
Instruction::new_with_bincode(
|
||||
test_program::id(),
|
||||
&SystemInstruction::Transfer { lamports },
|
||||
account_metas,
|
||||
@ -114,7 +114,7 @@ pub fn multisig(data_account: Pubkey, signers: &[Pubkey]) -> Instruction {
|
||||
account_metas.push(AccountMeta::new_readonly(pubkey, true));
|
||||
}
|
||||
|
||||
Instruction::new(
|
||||
Instruction::new_with_bincode(
|
||||
test_program::id(),
|
||||
&TestInstruction::Multisig,
|
||||
account_metas,
|
||||
@ -138,7 +138,7 @@ pub fn advance_nonce_account(
|
||||
if let Some(pubkey) = authorized_pubkey {
|
||||
account_metas.push(AccountMeta::new_readonly*nonce_authority, true));
|
||||
}
|
||||
Instruction::new(
|
||||
Instruction::new_with_bincode(
|
||||
test_program::id(),
|
||||
&TestInstruction::AdvanceNonceAccount,
|
||||
account_metas,
|
||||
|
Reference in New Issue
Block a user