Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Dec 3, 2024
1 parent 6b6d3ac commit 25b8c14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cairo_zero/tests/src/kakarot/precompiles/test_precompiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ def test__is_precompile_rollup_precompiles(self, cairo_run, address):
assert result == (address in ROLLUP_PRECOMPILES)

@pytest.mark.parametrize(
"address", range(KAKAROT_PRECOMPILES[0], KAKAROT_PRECOMPILES[-1] + 2)
"address",
range(KAKAROT_PRECOMPILES[0], KAKAROT_PRECOMPILES[-1] + 2),
)
def test__is_precompile_kakarot_precompiles(self, cairo_run, address):
result = cairo_run("test__is_precompile", address=address)
Expand Down
4 changes: 2 additions & 2 deletions cairo_zero/tests/src/kakarot/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
TX_ACCESS_LIST_STORAGE_KEY_COST,
)

from tests.utils.constants import ETHEREUM_PRECOMPILES, TRANSACTIONS
from tests.utils.constants import ALL_PRECOMPILES, TRANSACTIONS
from tests.utils.helpers import flatten_tx_access_list, merge_access_list
from tests.utils.syscall_handler import SyscallHandler

Expand Down Expand Up @@ -90,7 +90,7 @@ def test_should_cache_precompiles(self, cairo_run):
state = cairo_run("test__cache_precompiles")
assert [
int(address, 16) for address in state["accounts"].keys()
] == ETHEREUM_PRECOMPILES
] == ALL_PRECOMPILES

@SyscallHandler.patch("IERC20.balanceOf", lambda *_: [0, 1])
@pytest.mark.parametrize("transaction", TRANSACTIONS)
Expand Down

0 comments on commit 25b8c14

Please sign in to comment.