Skip to content

Commit e49de7a

Browse files
committed
Use non-chain process instruction
1 parent db6c1eb commit e49de7a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

program/tests/processor.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ fn do_process_instruction(
6161
});
6262

6363
let mollusk = Mollusk::new(&spl_token::ID, "spl_token");
64-
let result =
65-
mollusk.process_and_validate_instruction_chain(&[instruction], &instruction_accounts, &[]);
64+
let result = mollusk.process_and_validate_instruction(&instruction, &instruction_accounts, &[]);
6665

6766
// Update accounts after the instruction is processed.
6867
for (original, (_, updated)) in accounts.iter_mut().zip(result.resulting_accounts.iter()) {
@@ -102,8 +101,7 @@ fn do_process_instruction_dups(
102101
});
103102

104103
let mollusk = Mollusk::new(&spl_token::ID, "spl_token");
105-
let result =
106-
mollusk.process_and_validate_instruction_chain(&[instruction], &dedup_accounts, &[]);
104+
let result = mollusk.process_and_validate_instruction(&instruction, &dedup_accounts, &[]);
107105

108106
// Update accounts after the instruction is processed.
109107
result

0 commit comments

Comments
 (0)