diff --git a/docs/filters.rst b/docs/filters.rst index cef28b8b95..57fef0028d 100644 --- a/docs/filters.rst +++ b/docs/filters.rst @@ -112,7 +112,7 @@ will return a new :class:`BlockFilter` object. ``TransactionFilter`` is a subclass of :class:`Filter`. You can setup a filter for new blocks using ``web3.eth.filter('pending')`` which -will return a new :class:`BlockFilter` object. +will return a new :class:`TransactionFilter` object. .. code-block:: python diff --git a/newsfragments/2444.doc.rst b/newsfragments/2444.doc.rst new file mode 100644 index 0000000000..629dc65b47 --- /dev/null +++ b/newsfragments/2444.doc.rst @@ -0,0 +1 @@ +Doc fix: Pending transaction filter returns a ``TransactionFilter`` not a ``BlockFilter``