@@ -86,24 +86,18 @@ def test_calls_warm(blockchain_test: BlockchainTestFiller, fork: Fork, call_inst
8686
8787@pytest .mark .valid_from ("Verkle" )
8888@pytest .mark .parametrize (
89- "call_instruction, value_bearing, gas_limit, enough_gas_call_target, fails " ,
89+ "call_instruction, value_bearing, gas_limit, enough_gas_target_basicdata " ,
9090 [
91- (Op .CALL , True , 21_424 + 3500 + 5599 , False , True ),
92- (Op .CALL , True , 21_424 + 3500 + 5600 , True , True ),
93- (Op .CALL , False , 21_424 + 10_000 + 2099 , False , True ),
94- (Op .CALL , False , 21_424 + 10_000 + 2100 , True , False ),
95- (Op .CALLCODE , False , 21_424 + 10_000 + 2099 , False , True ),
96- (Op .CALLCODE , False , 21_424 + 10_000 + 2100 , True , False ),
97- (Op .DELEGATECALL , False , 21_421 + 10_000 + 2099 , False , True ),
98- (Op .DELEGATECALL , False , 21_421 + 10_000 + 2100 , True , False ),
99- (
100- Op .STATICCALL ,
101- False ,
102- 21_421 + 10_000 + 2099 ,
103- False ,
104- True ,
105- ),
106- (Op .STATICCALL , False , 21_421 + 10_000 + 2100 , True , False ),
91+ (Op .CALL , True , 21_424 + 3500 + 5599 , False ),
92+ (Op .CALL , True , 21_424 + 3500 + 5600 , True ),
93+ (Op .CALL , False , 21_424 + 2099 , False ),
94+ (Op .CALL , False , 21_424 + 2100 , True ),
95+ (Op .CALLCODE , False , 21_424 + 2099 , False ),
96+ (Op .CALLCODE , False , 21_424 + 2100 , True ),
97+ (Op .DELEGATECALL , False , 21_421 + 2099 , False ),
98+ (Op .DELEGATECALL , False , 21_421 + 2100 , True ),
99+ (Op .STATICCALL , False , 21_421 + 2099 , False ),
100+ (Op .STATICCALL , False , 21_421 + 2100 , True ),
107101 ],
108102 ids = [
109103 "CALL_with_value_insufficient_for_value_transfer_target" ,
@@ -124,8 +118,7 @@ def test_calls_insufficient_gas(
124118 call_instruction : Bytecode ,
125119 value_bearing : bool ,
126120 gas_limit ,
127- enough_gas_call_target : bool ,
128- fails : bool ,
121+ enough_gas_target_basicdata : bool ,
129122):
130123 """
131124 Test *CALL witness assertion when there's insufficient gas for different scenarios.
@@ -137,8 +130,8 @@ def test_calls_insufficient_gas(
137130 TestAddress2 ,
138131 1 if value_bearing else 0 ,
139132 gas_limit = gas_limit ,
140- enough_gas_call_target = enough_gas_call_target ,
141- fails = fails ,
133+ enough_gas_target_basicdata = enough_gas_target_basicdata ,
134+ fails = True ,
142135 )
143136
144137
@@ -149,7 +142,7 @@ def _generic_call(
149142 target : Address ,
150143 value ,
151144 gas_limit : int = 100000000 ,
152- enough_gas_call_target : bool = True ,
145+ enough_gas_target_basicdata : bool = True ,
153146 warm = False ,
154147 fails = False ,
155148):
@@ -194,7 +187,7 @@ def _generic_call(
194187 witness_check = WitnessCheck (fork = Verkle )
195188 for address in [TestAddress , caller_address , env .fee_recipient ]:
196189 witness_check .add_account_full (address = address , account = pre .get (address ))
197- if enough_gas_call_target :
190+ if enough_gas_target_basicdata :
198191 if target != precompile_address and target != system_contract_address :
199192 witness_check .add_account_basic_data (address = target , account = target_account )
200193 if call_instruction == Op .CALL and value > 0 :
0 commit comments