diff --git a/newsfragments/1934.feature.rst b/newsfragments/1934.feature.rst new file mode 100644 index 0000000000..b0a47cd51a --- /dev/null +++ b/newsfragments/1934.feature.rst @@ -0,0 +1 @@ +Add ``w3.eth.get_work``, deprecate ``w3.eth.getWork`` diff --git a/web3/eth.py b/web3/eth.py index 7de5446433..36a05b720d 100644 --- a/web3/eth.py +++ b/web3/eth.py @@ -662,7 +662,7 @@ def set_contract_factory( def getCompilers(self) -> NoReturn: raise DeprecationWarning("This method has been deprecated as of EIP 1474.") - getWork: Method[Callable[[], List[HexBytes]]] = Method( + get_work: Method[Callable[[], List[HexBytes]]] = Method( RPC.eth_getWork, mungers=None, ) @@ -719,3 +719,4 @@ def set_gas_price_strategy(self, gas_price_strategy: GasPriceStrategy) -> None: getFilterChanges = DeprecatedMethod(get_filter_changes, 'getFilterChanges', 'get_filter_changes') + getWork = DeprecatedMethod(get_work, 'getWork', 'get_work')