File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -2273,34 +2273,25 @@ def test_worst_push(
2273
2273
"size" ,
2274
2274
[
2275
2275
0 , # 0 bytes
2276
- 10 , # 10 bytes
2277
- 100 , # 100 bytes
2278
- 1 * 1024 , # 1KiB
2279
- 10 * 1024 , # 10KiB
2280
- 100 * 1024 , # 100KiB
2281
2276
1024 * 1024 , # 1MiB
2282
2277
],
2283
2278
)
2284
- @pytest .mark .parametrize ("empty_value " , [True , False ])
2279
+ @pytest .mark .parametrize ("empty_topic " , [True , False ])
2285
2280
@pytest .mark .parametrize ("fixed_offset" , [True , False ])
2286
2281
def test_worst_log_opcodes (
2287
2282
state_test : StateTestFiller ,
2288
2283
pre : Alloc ,
2289
2284
fork : Fork ,
2290
2285
opcode : Opcode ,
2291
- empty_value : bool ,
2286
+ empty_topic : bool ,
2292
2287
size : int ,
2293
2288
fixed_offset : bool ,
2294
2289
):
2295
2290
"""Test running a block with as many LOG opcodes as possible."""
2296
2291
env = Environment ()
2297
2292
max_code_size = fork .max_code_size ()
2298
2293
2299
- calldata = (
2300
- Op .PUSH0
2301
- if empty_value
2302
- else Op .PUSH32 (0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF )
2303
- )
2294
+ calldata = Op .PUSH0 if empty_topic else Op .PUSH32 (2 ** 256 - 1 )
2304
2295
2305
2296
topic_count = len (opcode .kwargs or []) - 2
2306
2297
You can’t perform that action at this time.
0 commit comments