File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1350,6 +1350,7 @@ def test_worst_memory_access(
1350
1350
def test_worst_modarith (
1351
1351
state_test : StateTestFiller ,
1352
1352
pre : Alloc ,
1353
+ fork : Fork ,
1353
1354
mod_bits : int ,
1354
1355
op : Op ,
1355
1356
):
@@ -1368,6 +1369,8 @@ def test_worst_modarith(
1368
1369
fixed_arg = 2 ** 256 - 1
1369
1370
num_args = 15
1370
1371
1372
+ max_code_size = fork .max_code_size ()
1373
+
1371
1374
# Pick the modulus min value so that it is _unlikely_ to drop to the lower word count.
1372
1375
assert mod_bits >= 63
1373
1376
mod_min = 2 ** (mod_bits - 63 )
@@ -1428,7 +1431,7 @@ def test_worst_modarith(
1428
1431
# Construct the final code. Because of the usage of PUSH32 the code segment is very long,
1429
1432
# so don't try to include multiple of these.
1430
1433
code = code_constant_pool + Op .JUMPDEST + code_segment + Op .JUMP (len (code_constant_pool ))
1431
- assert (MAX_CODE_SIZE - len (code_segment )) < len (code ) <= MAX_CODE_SIZE
1434
+ assert (max_code_size - len (code_segment )) < len (code ) <= max_code_size
1432
1435
1433
1436
env = Environment ()
1434
1437
You can’t perform that action at this time.
0 commit comments