From e29496b8f433c8ad83dd0de20f142e20396eb550 Mon Sep 17 00:00:00 2001 From: pintail Date: Wed, 15 Feb 2023 12:41:23 +0000 Subject: [PATCH] exclude reverted punk bid acceptances --- 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,