Skip to content

Commit 6116b96

Browse files
chore**s**(src): use --chain-id in ProgramChainid (#2232)
* use --chain-id in ProgramChainid * Update tests/frontier/scenarios/programs/context_calls.py --------- Co-authored-by: Mario Vega <[email protected]>
1 parent 4b2907d commit 6116b96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/frontier/scenarios/programs/context_calls.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from ethereum_test_forks import Byzantium, Cancun, Constantinople, Fork, Istanbul, London, Shanghai
66
from ethereum_test_tools import Alloc, Bytecode
7+
from ethereum_test_types import ChainConfigDefaults
78
from ethereum_test_vm import Opcodes as Op
89

910
from ..common import (
@@ -429,7 +430,10 @@ def id(self) -> str:
429430

430431
def result(self) -> ProgramResult:
431432
"""Test result."""
432-
return ProgramResult(result=1, from_fork=Istanbul)
433+
# TODO: use `chain_config` fixture instead.
434+
chain_id = ChainConfigDefaults.chain_id
435+
436+
return ProgramResult(result=chain_id, from_fork=Istanbul)
433437

434438

435439
class ProgramSelfbalance(ScenarioTestProgram):

0 commit comments

Comments
 (0)