From 3c1e30f2cfc12ebc8374b0318280e0985a079f71 Mon Sep 17 00:00:00 2001 From: Marvin Jones Date: Fri, 14 Aug 2026 16:43:59 -0400 Subject: [PATCH] refactor(lee): migrate program self/caller identity from ProgramId to AccountId ProgramInput/ProgramOutput.self_program_id/caller_program_id, and the dispatcher's CallerData.program_id, now carry AccountId (renamed to self_account_id/caller_account_id) instead of ProgramId. These fields are self-reported/cross-checked dispatch bookkeeping, not RISC0 image identity, and AccountId already crosses the guest/host boundary this way via every pre_state.account_id. ProgramId is now confined to what's actually image-id-keyed: env::verify, Program.id (from compute_image_id()), and the for_public_pda/for_private_pda derivation formulas, each recovering the real ProgramId from AccountId via the existing bijection exactly where needed. Rebuilds artifacts and the prebuilt sequencer db fixture to match. --- lee/state_machine/src/validated_state_diff/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lee/state_machine/src/validated_state_diff/mod.rs b/lee/state_machine/src/validated_state_diff/mod.rs index 70312f774..528253786 100644 --- a/lee/state_machine/src/validated_state_diff/mod.rs +++ b/lee/state_machine/src/validated_state_diff/mod.rs @@ -124,7 +124,6 @@ impl ValidatedStateDiff { chained_call.pre_states, chained_call.instruction_data ); - let mut program_output = if chained_call.program_account_id == RESERVED_DEPLOYMENT_PROGRAM_ACCOUNT_ID {