Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
chore(execution): fix borrow related conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Feb 6, 2024
1 parent aa5ff21 commit 28866de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/blockifier/src/fee/actual_cost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ impl<'a> ActualCostBuilder<'a> {
self,
execution_resources: &ExecutionResources,
) -> TransactionExecutionResult<ActualCost> {
let use_kzg_da = self.use_kzg_da();
let state_changes_count = StateChangesCount::from_state_changes_for_fee_charge(
self.state_changes,
self.sender_address,
Expand All @@ -145,7 +146,7 @@ impl<'a> ActualCostBuilder<'a> {
.chain_info
.fee_token_address(&self.tx_context.tx_info.fee_type()),
);
let da_gas = get_da_gas_cost(state_changes_count, self.use_kzg_da());
let da_gas = get_da_gas_cost(state_changes_count, use_kzg_da);
let non_optional_call_infos =
self.validate_call_info.into_iter().chain(self.execute_call_info);
// Gas usage for SHARP costs and Starknet L1-L2 messages. Includes gas usage for data
Expand All @@ -154,7 +155,7 @@ impl<'a> ActualCostBuilder<'a> {
non_optional_call_infos,
state_changes_count,
self.l1_payload_size,
self.use_kzg_da(),
use_kzg_da,
)?;

let mut actual_resources = calculate_tx_resources(
Expand Down

0 comments on commit 28866de

Please sign in to comment.