diff --git a/crates/tests-integration/src/state_reader.rs b/crates/tests-integration/src/state_reader.rs index bbf70b1a6e..1730b0d741 100644 --- a/crates/tests-integration/src/state_reader.rs +++ b/crates/tests-integration/src/state_reader.rs @@ -11,10 +11,10 @@ use blockifier::test_utils::{ CURRENT_BLOCK_TIMESTAMP, DEFAULT_ETH_L1_GAS_PRICE, DEFAULT_STRK_L1_GAS_PRICE, - DEFAULT_STRK_L2_GAS_PRICE, TEST_SEQUENCER_ADDRESS, }; use blockifier::transaction::objects::FeeType; +use blockifier::versioned_constants::VersionedConstants; use cairo_lang_starknet_classes::casm_contract_class::CasmContractClass; use indexmap::IndexMap; use mempool_test_utils::starknet_api_test_utils::Contract; @@ -232,8 +232,10 @@ fn test_block_header(block_number: BlockNumber) -> BlockHeader { price_in_fri: DEFAULT_STRK_L1_GAS_PRICE.into(), }, l2_gas_price: GasPricePerToken { - price_in_wei: DEFAULT_ETH_L1_GAS_PRICE.into(), - price_in_fri: DEFAULT_STRK_L2_GAS_PRICE.into(), + price_in_wei: VersionedConstants::latest_constants() + .convert_l1_to_l2_gas_price_round_up(DEFAULT_ETH_L1_GAS_PRICE.into()), + price_in_fri: VersionedConstants::latest_constants() + .convert_l1_to_l2_gas_price_round_up(DEFAULT_STRK_L1_GAS_PRICE.into()), }, timestamp: BlockTimestamp(CURRENT_BLOCK_TIMESTAMP), ..Default::default()