From 51c7345d266d52bae4f8efdbd5e0172f874314d9 Mon Sep 17 00:00:00 2001 From: pintail-xyz <192824+pintail-xyz@users.noreply.github.com> Date: Wed, 15 Feb 2023 23:16:08 +0700 Subject: [PATCH] exclude reverted punk bid acceptances (#330) Co-authored-by: pintail --- mev_inspect/punks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mev_inspect/punks.py b/mev_inspect/punks.py index b163b3a2..59d2649e 100644 --- a/mev_inspect/punks.py +++ b/mev_inspect/punks.py @@ -74,7 +74,10 @@ def _get_punk_bid_acceptances_for_transaction( if not isinstance(trace, DecodedCallTrace): continue - elif trace.classification == Classification.punk_accept_bid: + elif ( + trace.classification == Classification.punk_accept_bid + and trace.error is None + ): punk_accept_bid = PunkBidAcceptance( block_number=trace.block_number, transaction_hash=trace.transaction_hash,