@@ -704,13 +704,13 @@ fn expected_fib_fee_transfer_info(fee: u128) -> CallInfo {
704704 ] ,
705705 } ] ,
706706 storage_read_values : vec ! [
707- INITIAL_BALANCE . clone( ) - Felt252 :: from( 2476 ) ,
707+ INITIAL_BALANCE . clone( ) - Felt252 :: from( 1252 ) ,
708708 Felt252 :: zero( ) ,
709- INITIAL_BALANCE . clone( ) - Felt252 :: from( 2476 ) ,
709+ INITIAL_BALANCE . clone( ) - Felt252 :: from( 1252 ) ,
710710 Felt252 :: zero( ) ,
711- Felt252 :: from( 2476 ) ,
711+ Felt252 :: from( 1252 ) ,
712712 Felt252 :: zero( ) ,
713- Felt252 :: from( 2476 ) ,
713+ Felt252 :: from( 1252 ) ,
714714 Felt252 :: zero( ) ,
715715 ] ,
716716 accessed_storage_keys : HashSet :: from ( [
@@ -937,7 +937,7 @@ fn test_declare_tx() {
937937 ( "n_steps" . to_string ( ) , 2715 ) ,
938938 ( "range_check_builtin" . to_string ( ) , 63 ) ,
939939 ( "pedersen_builtin" . to_string ( ) , 15 ) ,
940- ( "l1_gas_usage" . to_string ( ) , 3672 ) ,
940+ ( "l1_gas_usage" . to_string ( ) , 2448 ) ,
941941 ] ) ;
942942 let fee = calculate_tx_fee ( & resources, * GAS_PRICE , & block_context) . unwrap ( ) ;
943943
@@ -1025,7 +1025,7 @@ fn test_declarev2_tx() {
10251025 ( "n_steps" . to_string ( ) , 2715 ) ,
10261026 ( "range_check_builtin" . to_string ( ) , 63 ) ,
10271027 ( "pedersen_builtin" . to_string ( ) , 15 ) ,
1028- ( "l1_gas_usage" . to_string ( ) , 2448 ) ,
1028+ ( "l1_gas_usage" . to_string ( ) , 1224 ) ,
10291029 ] ) ;
10301030 let fee = calculate_tx_fee ( & resources, * GAS_PRICE , & block_context) . unwrap ( ) ;
10311031
@@ -1243,7 +1243,7 @@ fn expected_transaction_execution_info(block_context: &BlockContext) -> Transact
12431243 let resources = HashMap :: from ( [
12441244 ( "n_steps" . to_string ( ) , 4135 ) ,
12451245 ( "pedersen_builtin" . to_string ( ) , 16 ) ,
1246- ( "l1_gas_usage" . to_string ( ) , 3672 ) ,
1246+ ( "l1_gas_usage" . to_string ( ) , 2448 ) ,
12471247 ( "range_check_builtin" . to_string ( ) , 101 ) ,
12481248 ] ) ;
12491249 let fee = calculate_tx_fee ( & resources, * GAS_PRICE , block_context) . unwrap ( ) ;
@@ -1272,7 +1272,7 @@ fn expected_fib_transaction_execution_info(
12721272 }
12731273 let resources = HashMap :: from ( [
12741274 ( "n_steps" . to_string ( ) , n_steps) ,
1275- ( "l1_gas_usage" . to_string ( ) , 7344 ) ,
1275+ ( "l1_gas_usage" . to_string ( ) , 4896 ) ,
12761276 ( "pedersen_builtin" . to_string ( ) , 16 ) ,
12771277 ( "range_check_builtin" . to_string ( ) , 104 ) ,
12781278 ] ) ;
@@ -1455,7 +1455,7 @@ fn test_invoke_with_declarev2_tx() {
14551455fn test_deploy_account ( ) {
14561456 let ( block_context, mut state) = create_account_tx_test_state ( ) . unwrap ( ) ;
14571457
1458- let expected_fee = 6157 ;
1458+ let expected_fee = 3709 ;
14591459
14601460 let deploy_account_tx = DeployAccount :: new (
14611461 felt_to_hash ( & TEST_ACCOUNT_CONTRACT_CLASS_HASH ) ,
@@ -1525,12 +1525,12 @@ fn test_deploy_account() {
15251525 ( "n_steps" . to_string ( ) , 3625 ) ,
15261526 ( "range_check_builtin" . to_string ( ) , 83 ) ,
15271527 ( "pedersen_builtin" . to_string ( ) , 23 ) ,
1528- ( "l1_gas_usage" . to_string ( ) , 6120 ) ,
1528+ ( "l1_gas_usage" . to_string ( ) , 3672 ) ,
15291529 ] ) ;
15301530
15311531 let fee = calculate_tx_fee ( & resources, * GAS_PRICE , & block_context) . unwrap ( ) ;
15321532
1533- assert_eq ! ( fee, 6157 ) ;
1533+ assert_eq ! ( fee, expected_fee ) ;
15341534
15351535 let expected_execution_info = TransactionExecutionInfo :: new (
15361536 expected_validate_call_info. into ( ) ,
@@ -1564,11 +1564,10 @@ fn expected_deploy_account_states() -> (
15641564 CachedState < InMemoryStateReader > ,
15651565 CachedState < InMemoryStateReader > ,
15661566) {
1567- let fee = Felt252 :: from ( 6157 ) ;
1567+ let fee = Felt252 :: from ( 3709 ) ;
15681568 let mut state_before = CachedState :: new (
15691569 Arc :: new ( InMemoryStateReader :: new (
15701570 HashMap :: from ( [
1571- ( Address ( 0x101 . into ( ) ) , felt_to_hash ( & 0x111 . into ( ) ) ) ,
15721571 ( Address ( 0x100 . into ( ) ) , felt_to_hash ( & 0x110 . into ( ) ) ) ,
15731572 ( Address ( 0x1001 . into ( ) ) , felt_to_hash ( & 0x1010 . into ( ) ) ) ,
15741573 ] ) ,
@@ -1805,7 +1804,7 @@ fn test_state_for_declare_tx() {
18051804 // ])
18061805 // );
18071806
1808- let fee = Felt252 :: from ( 3700 ) ;
1807+ let fee = Felt252 :: from ( 2476 ) ;
18091808
18101809 // Check state.cache
18111810 assert_eq ! (
0 commit comments