Skip to content

Commit 0693ff5

Browse files
authored
Add test case for uint256max allocation
1 parent a7f347e commit 0693ff5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/monad_nine/mip3_linear_memory/test_oom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def test_nested_call_oom(
215215
[
216216
pytest.param(Op.STOP, 1, False, id="success"),
217217
pytest.param(Op.MLOAD(Spec.MAX_TX_MEMORY_USAGE), 0, False, id="oom"),
218+
pytest.param(Op.MLOAD(2**256 - 1), 0, True, id="oog_before_oom"),
218219
pytest.param(Op.REVERT(0, 0), 0, False, id="revert"),
219220
pytest.param(Op.INVALID, 0, True, id="invalid"),
220221
],
@@ -229,7 +230,7 @@ def test_nested_call_gas_consumption(
229230
) -> None:
230231
"""
231232
Test gas consumption behavior of CALL with different callee outcomes.
232-
REVERT should not consume all gas, while INVALID does.
233+
OOM should not consume all gas, unlike OOG and INVALID.
233234
"""
234235
inner_address = pre.deploy_contract(callee_code)
235236

0 commit comments

Comments
 (0)