Skip to content

Commit

Permalink
ABC: add missing chain_context to VirtualMachineAPI's constructor.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
veox committed Dec 10, 2019
1 parent dff6854 commit 3e9ae1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eth/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,10 @@ class VirtualMachineAPI(ConfigurableAPI):
extra_data_max_bytes: ClassVar[int]

@abstractmethod
def __init__(self, header: BlockHeaderAPI, chaindb: ChainDatabaseAPI) -> None:
def __init__(self,
header: BlockHeaderAPI,
chaindb: ChainDatabaseAPI,
chain_context: ChainContextAPI) -> None:
"""
Initialize the virtual machine.
"""
Expand Down

0 comments on commit 3e9ae1d

Please sign in to comment.