Skip to content

Commit 5fdbe3a

Browse files
committed
Fix error in SubmitIntent when receiving cash link from non-primary account
1 parent d171bdc commit 5fdbe3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/code/server/transaction/intent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (s *transactionServer) SubmitIntent(streamer transactionpb.Transaction_Subm
149149
log.WithError(err).Warn("failure getting user initiator owner account")
150150
return handleSubmitIntentError(streamer, err)
151151
} else if err == account.ErrAccountInfoNotFound || accountInfoRecord.AccountType != commonpb.AccountType_PRIMARY {
152-
return NewActionValidationError(submitActionsReq.Actions[0], "destination must be a primary account")
152+
return handleSubmitIntentError(streamer, NewActionValidationError(submitActionsReq.Actions[0], "destination must be a primary account"))
153153
}
154154

155155
initiatorOwnerAccount, err = common.NewAccountFromPublicKeyString(accountInfoRecord.OwnerAccount)

0 commit comments

Comments
 (0)