Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 6bd7737

Browse files
committed
ABC: add missing chain_context arg to VirtualMachineAPI's constructor.
This silences `mypy` error: eth/chains/base.py:250: error: Unexpected keyword argument "chain_context" for "VirtualMachineAPI" eth/abc.py:2270: note: "VirtualMachineAPI" defined here This change has been copy-pasted from the previous PR. I would've cherry-picked it in, but since then the constructor has changed, adding in `consensus_context`, too. Anyway, here's the previous PR's commit: 97cc8db
1 parent 65d2c4a commit 6bd7737

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eth/abc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,6 +2481,7 @@ class VirtualMachineAPI(ConfigurableAPI):
24812481
def __init__(self,
24822482
header: BlockHeaderAPI,
24832483
chaindb: ChainDatabaseAPI,
2484+
chain_context: ChainContextAPI,
24842485
consensus_context: ConsensusContextAPI) -> None:
24852486
"""
24862487
Initialize the virtual machine.

0 commit comments

Comments
 (0)