From 39d85248eb68d1c2689d2f311173702b735561f4 Mon Sep 17 00:00:00 2001 From: Arnon Hod Date: Thu, 21 Nov 2024 17:02:20 +0200 Subject: [PATCH] chore(blockifier): remove warning about versioned constants (#2218) --- crates/blockifier/src/fee/gas_usage_test.rs | 2 +- crates/blockifier/src/fee/receipt_test.rs | 2 +- crates/blockifier/src/transaction/objects_test.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/blockifier/src/fee/gas_usage_test.rs b/crates/blockifier/src/fee/gas_usage_test.rs index 10cdb2c96d..4b2809502b 100644 --- a/crates/blockifier/src/fee/gas_usage_test.rs +++ b/crates/blockifier/src/fee/gas_usage_test.rs @@ -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, diff --git a/crates/blockifier/src/fee/receipt_test.rs b/crates/blockifier/src/fee/receipt_test.rs index 5b4286ce34..b15916a12c 100644 --- a/crates/blockifier/src/fee/receipt_test.rs +++ b/crates/blockifier/src/fee/receipt_test.rs @@ -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, diff --git a/crates/blockifier/src/transaction/objects_test.rs b/crates/blockifier/src/transaction/objects_test.rs index d736adb89c..29ef00aed6 100644 --- a/crates/blockifier/src/transaction/objects_test.rs +++ b/crates/blockifier/src/transaction/objects_test.rs @@ -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 ); }