Skip to content

Commit

Permalink
update filter offset to latest so only new changes are fetched in nex…
Browse files Browse the repository at this point in the history
…t call
  • Loading branch information
mmsqe committed Nov 14, 2023
1 parent 964e3ea commit 6910f84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration_tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
def test_pending_transaction_filter(cluster):
w3: Web3 = cluster.w3
flt = w3.eth.filter("pending")
# update offset to latest in stream server side
flt.get_new_entries()
assert flt.get_new_entries() == []
receipt = send_transaction(w3, {"to": ADDRS["community"], "value": 1000})
assert receipt.status == 1
Expand Down

0 comments on commit 6910f84

Please sign in to comment.