From 906780d291c1e5aea1e35d5220f14bbacfb67591 Mon Sep 17 00:00:00 2001 From: Ori Friedlender Date: Sun, 14 Jan 2024 17:29:45 +0200 Subject: [PATCH] Add MAX_L1_GAS_AMOUNT_U128 --- crates/blockifier/src/test_utils.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/blockifier/src/test_utils.rs b/crates/blockifier/src/test_utils.rs index c225cf1d55..3930171bdc 100644 --- a/crates/blockifier/src/test_utils.rs +++ b/crates/blockifier/src/test_utils.rs @@ -109,9 +109,10 @@ pub fn test_erc20_faulty_account_balance_key() -> StorageKey { // The max_fee / resource bounds used for txs in this test. pub const MAX_L1_GAS_AMOUNT: u64 = 1000000; +pub const MAX_L1_GAS_AMOUNT_U128: u128 = MAX_L1_GAS_AMOUNT as u128; pub const MAX_L1_GAS_PRICE: u128 = DEFAULT_STRK_L1_GAS_PRICE; -pub const MAX_RESOURCE_COMMITMENT: u128 = MAX_L1_GAS_AMOUNT as u128 * MAX_L1_GAS_PRICE; -pub const MAX_FEE: u128 = MAX_L1_GAS_AMOUNT as u128 * DEFAULT_ETH_L1_GAS_PRICE; +pub const MAX_RESOURCE_COMMITMENT: u128 = MAX_L1_GAS_AMOUNT_U128 * MAX_L1_GAS_PRICE; +pub const MAX_FEE: u128 = MAX_L1_GAS_AMOUNT_U128 * DEFAULT_ETH_L1_GAS_PRICE; // The amount of test-token allocated to the account in this test, set to a multiple of the max // amount deprecated / non-deprecated transactions commit to paying.