diff --git a/x/epochstorage/types/supported_services.go b/x/epochstorage/types/supported_services.go index 3a80ee7d1d..46002ef522 100644 --- a/x/epochstorage/types/supported_services.go +++ b/x/epochstorage/types/supported_services.go @@ -1,6 +1,9 @@ package types -import "fmt" +import ( + "fmt" + "sort" +) type EndpointService struct { ApiInterface string @@ -64,6 +67,7 @@ func (endpoint *Endpoint) SetDefaultApiInterfaces(requiredServices map[EndpointS } endpoint.ApiInterfaces = append(endpoint.ApiInterfaces, endpointService.ApiInterface) } + sort.Strings(endpoint.ApiInterfaces) } // users are allowed to send apiInterfaces inside the addons list, this code supports that