Skip to content

Commit

Permalink
fix another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jan 17, 2025
1 parent e1847bd commit 7360419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/builtins/codegen/test_ecrecover.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_ecrecover() -> bool:
assert c.test_ecrecover() is True


def test_ecrecover_oog_handling(env, get_contract, tx_failed, optimize):
def test_ecrecover_oog_handling(env, get_contract, tx_failed, optimize, experimental_codegen):
# GHSA-vgf2-gvx8-xwc3
code = """
@external
Expand All @@ -110,7 +110,7 @@ def do_ecrecover(hash: bytes32, v: uint256, r:uint256, s:uint256) -> address:

gas_used = env.last_result.gas_used

if optimize == OptimizationLevel.NONE:
if optimize == OptimizationLevel.NONE and not experimental_codegen:
# if optimizations are off, enough gas is used by the contract
# that the gas provided to ecrecover (63/64ths rule) is enough
# for it to succeed
Expand Down

0 comments on commit 7360419

Please sign in to comment.