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

exclude reverted punk bid acceptances #330

Merged
merged 1 commit into from
Feb 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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