From 3e9ae1d2dd362c062533cfd7da6ff4c4f8b2fe05 Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Tue, 10 Dec 2019 20:45:07 +0200 Subject: [PATCH] ABC: add missing chain_context 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 --- eth/abc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eth/abc.py b/eth/abc.py index 0ee96f05d0..8232ffdf68 100644 --- a/eth/abc.py +++ b/eth/abc.py @@ -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. """