This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ func (l *TransactionListener) OnTransactionReceived(cb wallet.TransactionCallbac
138
138
log .Errorf ("update funding for sale (%s): %s" , orderId , err )
139
139
}
140
140
// This is a dispute payout. We should set the order state.
141
- if len (records ) > 0 && fundsReleased {
142
- if contract .DisputeAcceptance == nil && contract != nil && contract . BuyerOrder != nil && contract .BuyerOrder .BuyerID != nil {
141
+ if len (records ) > 0 && fundsReleased && contract != nil && contract . Dispute != nil {
142
+ if contract .DisputeAcceptance == nil && contract .BuyerOrder .BuyerID != nil {
143
143
accept := new (pb.DisputeAcceptance )
144
144
ts , _ := ptypes .TimestampProto (time .Now ())
145
145
accept .Timestamp = ts
@@ -178,8 +178,8 @@ func (l *TransactionListener) OnTransactionReceived(cb wallet.TransactionCallbac
178
178
if err != nil {
179
179
log .Errorf ("update funding for purchase (%s): %s" , orderId , err )
180
180
}
181
- if len (records ) > 0 && fundsReleased {
182
- if contract .DisputeAcceptance == nil && contract != nil && len (contract .VendorListings ) > 0 && contract .VendorListings [0 ].VendorID != nil {
181
+ if len (records ) > 0 && fundsReleased && contract != nil && contract . Dispute != nil {
182
+ if contract .DisputeAcceptance == nil && len (contract .VendorListings ) > 0 && contract .VendorListings [0 ].VendorID != nil {
183
183
accept := new (pb.DisputeAcceptance )
184
184
ts , _ := ptypes .TimestampProto (time .Now ())
185
185
accept .Timestamp = ts
You can’t perform that action at this time.
0 commit comments