Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
exclude reverted punk bid acceptances (#330)
Browse files Browse the repository at this point in the history
Co-authored-by: pintail <[email protected]>
  • Loading branch information
pintail-xyz and pintail authored Feb 15, 2023
1 parent b6777a2 commit 51c7345
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mev_inspect/punks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 51c7345

Please sign in to comment.