Skip to content

Commit

Permalink
chore: fix gas price warning in integration test state reader (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware authored Oct 23, 2024
1 parent 1ef3528 commit 687e278
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/tests-integration/src/state_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 687e278

Please sign in to comment.