Skip to content

Commit eb6120b

Browse files
authored
feat(tests): add test for modexp with 2**32 exp len (#2254)
1 parent 14d7a5d commit eb6120b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/byzantium/eip198_modexp_precompile/test_modexp.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@
7272
ModExpInput(base="", exponent="", modulus="0001"),
7373
ModExpOutput(returned_data="0x0000"),
7474
),
75+
(
76+
ModExpInput(
77+
base="",
78+
exponent="",
79+
modulus="",
80+
declared_exponent_length=2**32,
81+
declared_modulus_length=1,
82+
),
83+
ModExpOutput(returned_data="0x00", call_success=False),
84+
),
7585
# Test cases from EIP 198.
7686
pytest.param(
7787
ModExpInput(

0 commit comments

Comments
 (0)