Skip to content

Commit

Permalink
test(mempool): fix reource_bounds initalization in tx macro (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadNassar1 authored Oct 10, 2024
1 parent fe03628 commit 881c4b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion crates/mempool/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ macro_rules! tx {
tx_nonce: $tx_nonce:expr, max_l2_gas_price: $max_l2_gas_price:expr) => {{
let resource_bounds = ValidResourceBounds::AllResources(AllResourceBounds {
l2_gas: ResourceBounds {
max_price_per_unit: GasPrice(VALID_L2_GAS_MAX_PRICE_PER_UNIT),
max_price_per_unit: $max_l2_gas_price.into(),
..Default::default()
},
..Default::default()
Expand Down
1 change: 0 additions & 1 deletion crates/mempool/tests/flow_test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use mempool_test_utils::starknet_api_test_utils::VALID_L2_GAS_MAX_PRICE_PER_UNIT;
use rstest::{fixture, rstest};
use starknet_api::block::GasPrice;
use starknet_api::core::{ContractAddress, PatriciaKey};
use starknet_api::executable_transaction::Transaction;
use starknet_api::hash::StarkHash;
Expand Down

0 comments on commit 881c4b0

Please sign in to comment.