From d59a5266a287e5f713accd927c8b5fc72e9a4362 Mon Sep 17 00:00:00 2001 From: Eric Huang <104116818+EricHuang0525@users.noreply.github.com> Date: Tue, 26 Apr 2022 15:58:27 +0800 Subject: [PATCH 1/2] Resolve Typo in documentation. --- docs/filters.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 64dcf0201769292b6b16cfe37810ec7acfe1dab7 Mon Sep 17 00:00:00 2001 From: kclowes Date: Wed, 27 Apr 2022 11:45:33 -0600 Subject: [PATCH 2/2] Add newsfragment for doc fix --- newsfragments/2444.doc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 newsfragments/2444.doc.rst 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``