OSDN Git Service

Modify federation sync (#422)
[bytom/vapor.git] / toolbar / federation / api / handler.go
index 8a23b9f..4bb18f6 100644 (file)
@@ -34,7 +34,7 @@ func (s *Server) ListCrosschainTxs(c *gin.Context, listTxsReq *listCrosschainTxs
                txFilter.SourceTxHash = txHash
        }
        if txHash, err := listTxsReq.GetFilterString("dest_tx_hash"); err == nil && txHash != "" {
-               txFilter.DestTxHash = sql.NullString{txHash, true}
+               txFilter.DestTxHash = sql.NullString{String: txHash, Valid: true}
        }
 
        txQuery := s.db.Preload("Chain").Preload("Reqs").Preload("Reqs.Asset").Where(txFilter)