fix(sequencer): prevent chain-calls to the fee program

This commit is contained in:
erhant
2026-08-19 15:49:28 +03:00
parent f5a8f96344
commit 3bfbf7cfbb
3 changed files with 4 additions and 0 deletions
Binary file not shown.
+4
View File
@@ -23,6 +23,10 @@ fn main() {
},
instruction_words,
) = read_lee_inputs::<Instruction>();
assert!(
caller_program_id.is_none(),
"Fee program is only invoked as a top-level sequencer transaction"
);
let Ok([pre_state, pre_escrow, pre_inbox]) = <[_; 3]>::try_from(pre_states) else {
panic!("Invalid number of input accounts");
Binary file not shown.