Skip to content

Commit

Permalink
fix: Update slot number when initializing ProgramCacheForTxBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d committed Jan 2, 2025
1 parent 5dfc94f commit 5824560
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frame/solana/src/svm/transaction_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,8 @@ impl TransactionProcessor {
_check_program_modification_slot: bool,
_limit_to_load_programs: bool,
) -> ProgramCacheForTxBatch {
let mut loaded_programs_for_tx_batch = ProgramCacheForTxBatch::default();

// FIXME: program_runtime_environments.
loaded_programs_for_tx_batch.environments = ProgramRuntimeEnvironments {
let environments = ProgramRuntimeEnvironments {
program_runtime_v1: Arc::new(
create_program_runtime_environment_v1(
&Default::default(),
Expand All @@ -420,6 +418,8 @@ impl TransactionProcessor {
false, /* debugging_features */
)),
};
let mut loaded_programs_for_tx_batch =
ProgramCacheForTxBatch::new(self.slot, environments, None, self.epoch);

// FIXME: load builtins.
for cached_program in self.program_cache.iter() {
Expand Down

0 comments on commit 5824560

Please sign in to comment.