Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 57340cd

Browse files
committed
Removed the order state requirement for added DisputeAcceptance to the contract
1 parent fc67377 commit 57340cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wallet/listeners/transaction_listener.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (l *TransactionListener) OnTransactionReceived(cb wallet.TransactionCallbac
129129
log.Errorf("update funding for sale (%s): %s", orderId, err)
130130
}
131131
// This is a dispute payout. We should set the order state.
132-
if state == pb.OrderState_DECIDED && len(records) > 0 && fundsReleased {
132+
if len(records) > 0 && fundsReleased {
133133
if contract.DisputeAcceptance == nil && contract != nil && contract.BuyerOrder != nil && contract.BuyerOrder.BuyerID != nil {
134134
accept := new(pb.DisputeAcceptance)
135135
ts, _ := ptypes.TimestampProto(time.Now())
@@ -169,7 +169,7 @@ func (l *TransactionListener) OnTransactionReceived(cb wallet.TransactionCallbac
169169
if err != nil {
170170
log.Errorf("update funding for purchase (%s): %s", orderId, err)
171171
}
172-
if state == pb.OrderState_DECIDED && len(records) > 0 && fundsReleased {
172+
if len(records) > 0 && fundsReleased {
173173
if contract.DisputeAcceptance == nil && contract != nil && len(contract.VendorListings) > 0 && contract.VendorListings[0].VendorID != nil {
174174
accept := new(pb.DisputeAcceptance)
175175
ts, _ := ptypes.TimestampProto(time.Now())

0 commit comments

Comments
 (0)