Deprecate Instruction::new (#15695)
This commit is contained in:
@ -58,7 +58,7 @@ async fn clock_sysvar_updated_from_warp() {
|
||||
|
||||
let mut context = program_test.start_with_context().await;
|
||||
let expected_slot = 5_000_000;
|
||||
let instruction = Instruction::new(
|
||||
let instruction = Instruction::new_with_bincode(
|
||||
program_id,
|
||||
&expected_slot,
|
||||
vec![AccountMeta::new_readonly(clock::id(), false)],
|
||||
@ -83,7 +83,7 @@ async fn clock_sysvar_updated_from_warp() {
|
||||
|
||||
// Warp to success!
|
||||
context.warp_to_slot(expected_slot).unwrap();
|
||||
let instruction = Instruction::new(
|
||||
let instruction = Instruction::new_with_bincode(
|
||||
program_id,
|
||||
&expected_slot,
|
||||
vec![AccountMeta::new_readonly(clock::id(), false)],
|
||||
|
Reference in New Issue
Block a user