Skip to content

Commit

Permalink
Use non-chain process instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Jan 15, 2025
1 parent db6c1eb commit e49de7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions program/tests/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ fn do_process_instruction(
});

let mollusk = Mollusk::new(&spl_token::ID, "spl_token");
let result =
mollusk.process_and_validate_instruction_chain(&[instruction], &instruction_accounts, &[]);
let result = mollusk.process_and_validate_instruction(&instruction, &instruction_accounts, &[]);

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

let mollusk = Mollusk::new(&spl_token::ID, "spl_token");
let result =
mollusk.process_and_validate_instruction_chain(&[instruction], &dedup_accounts, &[]);
let result = mollusk.process_and_validate_instruction(&instruction, &dedup_accounts, &[]);

// Update accounts after the instruction is processed.
result
Expand Down

0 comments on commit e49de7a

Please sign in to comment.