Skip to content

Commit

Permalink
chore(blockifier): remove warning about versioned constants (#2218)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware authored Nov 21, 2024
1 parent 2844be9 commit 39d8524
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/blockifier/src/fee/gas_usage_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn starknet_resources() -> StarknetResources {
.map(|call_info| call_info.with_some_class_hash())
.collect();
let execution_summary =
CallInfo::summarize_many(call_infos.iter(), &VersionedConstants::latest_constants());
CallInfo::summarize_many(call_infos.iter(), VersionedConstants::latest_constants());
let state_resources = StateResources::new_for_testing(StateChangesCount {
n_storage_updates: 7,
n_class_hash_updates: 11,
Expand Down
2 changes: 1 addition & 1 deletion crates/blockifier/src/fee/receipt_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ fn test_calculate_tx_gas_usage(
let execution_call_info =
&tx_execution_info.execute_call_info.expect("Execution call info should exist.");
let execution_summary =
CallInfo::summarize_many(vec![execution_call_info].into_iter(), &versioned_constants);
CallInfo::summarize_many(vec![execution_call_info].into_iter(), versioned_constants);
let starknet_resources = StarknetResources::new(
calldata_length,
signature_length,
Expand Down
2 changes: 1 addition & 1 deletion crates/blockifier/src/transaction/objects_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ fn test_events_counter_in_tx_execution_info(
};

assert_eq!(
tx_execution_info.summarize(&VersionedConstants::latest_constants()).event_summary.n_events,
tx_execution_info.summarize(VersionedConstants::latest_constants()).event_summary.n_events,
n_validate_events + n_execute_events + n_fee_transfer_events + n_inner_calls
);
}
Expand Down

0 comments on commit 39d8524

Please sign in to comment.