From e49de7a265af3a3f2763c2318c2b4278cf4733c8 Mon Sep 17 00:00:00 2001 From: febo Date: Sun, 12 Jan 2025 02:02:43 +0000 Subject: [PATCH] Use non-chain process instruction --- program/tests/processor.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/program/tests/processor.rs b/program/tests/processor.rs index c7099ca..d4aa2a1 100644 --- a/program/tests/processor.rs +++ b/program/tests/processor.rs @@ -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()) { @@ -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