Skip to content

Commit 4903121

Browse files
fix the auction panic
1 parent 026cfba commit 4903121

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/bath/auctions.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ var StrawAuctionBuyFragments = Straw[BubbleNftPurchase]{
141141
SingleChild: &Straw[BubbleNftPurchase]{
142142
CheckFuncs: []bubbleCheck{IsTx, HasOperation(abi.NftOwnershipAssignedMsgOp)},
143143
Builder: func(newAction *BubbleNftPurchase, bubble *Bubble) error {
144-
newAction.Seller = parseAccount(bubble.Info.(BubbleTx).decodedBody.Value.(abi.NftOwnershipAssignedMsgBody).PrevOwner).Address
144+
seller := parseAccount(bubble.Info.(BubbleTx).decodedBody.Value.(abi.NftOwnershipAssignedMsgBody).PrevOwner)
145+
if seller != nil {
146+
newAction.Seller = seller.Address
147+
}
145148
return nil
146149
},
147150
},

0 commit comments

Comments
 (0)