diff --git a/kakarot_scripts/constants.py b/kakarot_scripts/constants.py index 79195b3008..296d26df24 100644 --- a/kakarot_scripts/constants.py +++ b/kakarot_scripts/constants.py @@ -226,6 +226,9 @@ class ChainId(IntEnum): or "0x20eB005C0b9c906691F885eca5895338E15c36De", # Defaults to faucet on appchain sepolia 16, ) + +NETWORK["coinbase"] = COINBASE + CAIRO_ZERO_DIR = Path("src") CAIRO_DIR = Path("cairo1_contracts") TESTS_DIR = Path("tests") diff --git a/kakarot_scripts/deploy_kakarot.py b/kakarot_scripts/deploy_kakarot.py index e7f7f67088..3750ce633b 100644 --- a/kakarot_scripts/deploy_kakarot.py +++ b/kakarot_scripts/deploy_kakarot.py @@ -147,6 +147,8 @@ async def main(): await invoke("kakarot", "set_coinbase", int(bridge.address, 16)) coinbase = (await call("kakarot", "get_coinbase")).coinbase + # Set the coinbase in the network config to be used in the tests + NETWORK["coinbase"] = coinbase if coinbase == 0: logger.error("❌ Coinbase is set to 0, all transaction fees will be lost") diff --git a/tests/end_to_end/bytecodes.py b/tests/end_to_end/bytecodes.py index 53c5144ab5..d865455dda 100644 --- a/tests/end_to_end/bytecodes.py +++ b/tests/end_to_end/bytecodes.py @@ -1,6 +1,6 @@ import pytest -from kakarot_scripts.constants import BLOCK_GAS_LIMIT, COINBASE, NETWORK +from kakarot_scripts.constants import BLOCK_GAS_LIMIT, NETWORK test_cases = [ { @@ -749,7 +749,7 @@ "value": 0, "code": "4100", "calldata": "", - "stack": f"{COINBASE}", + "stack": f"{NETWORK['coinbase']}", "memory": "", "return_data": "", "success": 1,