From c969ee0890b0af5fd64f202548b058a14e0db946 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Sun, 20 Jul 2025 20:18:36 -0300 Subject: [PATCH] remove unnecessary check --- .../sequencer/process_public_execution.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/risc0-selective-privacy-poc/examples/mocked_components/sequencer/process_public_execution.rs b/risc0-selective-privacy-poc/examples/mocked_components/sequencer/process_public_execution.rs index 68f695d..7fc0df9 100644 --- a/risc0-selective-privacy-poc/examples/mocked_components/sequencer/process_public_execution.rs +++ b/risc0-selective-privacy-poc/examples/mocked_components/sequencer/process_public_execution.rs @@ -26,16 +26,6 @@ impl MockedSequencer { return Err(Error::BadInput); } - // Fail if any of the output accounts is not yet registered. - // This is redundant with previous checks, but better make it explicit. - if !program_output - .accounts_post - .iter() - .all(|account| self.accounts.contains_key(&account.address)) - { - return Err(Error::BadInput); - } - // Update the accounts states program_output.accounts_post.into_iter().for_each(|account_post_state| { self.accounts.insert(account_post_state.address, account_post_state);