diff --git a/web3/_utils/method_formatters.py b/web3/_utils/method_formatters.py index 469a0c9743..b97db99e84 100644 --- a/web3/_utils/method_formatters.py +++ b/web3/_utils/method_formatters.py @@ -498,9 +498,9 @@ def get_request_formatters( method_name: Union[RPCEndpoint, Callable[..., RPCEndpoint]] ) -> Dict[str, Callable[..., Any]]: request_formatter_maps = ( - METHOD_NORMALIZERS, ABI_REQUEST_FORMATTERS, PYTHONIC_REQUEST_FORMATTERS, + METHOD_NORMALIZERS, ) formatters = combine_formatters(request_formatter_maps, method_name) return compose(*formatters) diff --git a/web3/eth.py b/web3/eth.py index d2abd108eb..128d273308 100644 --- a/web3/eth.py +++ b/web3/eth.py @@ -492,20 +492,20 @@ def filter( "a valid filter object, or a filter_id as a string " "or hex.") - def getFilterChanges(self, filter_id: HexStr) -> List[LogReceipt]: - return self.web3.manager.request_blocking( - RPC.eth_getFilterChanges, [filter_id], - ) + getFilterChanges: Method[Callable[[HexStr], List[LogReceipt]]] = Method( + RPC.eth_getFilterChanges, + mungers=[default_root_munger] + ) - def getFilterLogs(self, filter_id: HexStr) -> List[LogReceipt]: - return self.web3.manager.request_blocking( - RPC.eth_getFilterLogs, [filter_id], - ) + getFilterLogs: Method[Callable[[HexStr], List[LogReceipt]]] = Method( + RPC.eth_getFilterLogs, + mungers=[default_root_munger] + ) - def getLogs(self, filter_params: FilterParams) -> List[LogReceipt]: - return self.web3.manager.request_blocking( - RPC.eth_getLogs, [filter_params], - ) + getLogs: Method[Callable[[FilterParams], List[LogReceipt]]] = Method( + RPC.eth_getLogs, + mungers=[default_root_munger] + ) submitHashrate: Method[Callable[[int, _Hash32], bool]] = Method( RPC.eth_submitHashrate,