From 4472e56f529364144dea0b320a7935487e2fe623 Mon Sep 17 00:00:00 2001 From: Tao Zhu Date: Mon, 6 Jan 2025 09:28:24 -0600 Subject: [PATCH] avoid getting program_ids that are not used after all --- cost-model/src/cost_model.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cost-model/src/cost_model.rs b/cost-model/src/cost_model.rs index 6bafd9837ed6dc..ff5aafd35db5f9 100644 --- a/cost-model/src/cost_model.rs +++ b/cost-model/src/cost_model.rs @@ -277,8 +277,8 @@ impl CostModel { /// Return the instruction data bytes cost. fn get_instructions_data_cost(transaction: &impl SVMMessage) -> u64 { let ix_data_bytes_len_total: u64 = transaction - .program_instructions_iter() - .map(|(_, instruction)| instruction.data.len() as u64) + .instructions_iter() + .map(|instruction| instruction.data.len() as u64) .sum(); ix_data_bytes_len_total / INSTRUCTION_DATA_BYTES_COST