Skip to content

Commit e70a546

Browse files
committed
add stellar address validation
1 parent 9b2c3cd commit e70a546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-registrar/pkg/server/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (s Server) createFarmHandler(c *gin.Context) {
131131

132132
type UpdateFarmRequest struct {
133133
FarmName string `json:"farm_name" binding:"max=40"`
134-
StellarAddress string `json:"stellar_address" binding:"max=56"`
134+
StellarAddress string `json:"stellar_address" binding:"max=56,startswith=G,len=56,alphanum,uppercase"`
135135
}
136136

137137
// @Summary Update farm

0 commit comments

Comments
 (0)