Skip to content

Commit a858f3e

Browse files
author
miko
committed
Minor change
1 parent 0d00d01 commit a858f3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/services/v1/comments/create.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,7 @@ func handleUsdcTip(request *createRequest) {
852852

853853
var signature string
854854
var signatureTS string
855-
for i := 0; i < len(respData.Transactions.Edges[0].Node.Tags); i++ {
856-
tag := respData.Transactions.Edges[0].Node.Tags[i]
855+
for _, tag := range respData.Transactions.Edges[0].Node.Tags {
857856
switch tag.Name {
858857
case "Action":
859858
if tag.Value != "Transfer" {
@@ -907,7 +906,7 @@ func handleUsdcTip(request *createRequest) {
907906
}
908907

909908
if len(tagsLeftToCheck) != 0 {
910-
logrus.Error(fmt.Sprintf("Didn't found tags %v from the tx", tagsLeftToCheck))
909+
logrus.Error(fmt.Sprintf("Didn't found tags %v from the tx. %s", tagsLeftToCheck, defaultErrorInfo))
911910
}
912911

913912
request.comment.Amount.SetValid(amount)

0 commit comments

Comments
 (0)