refactor: remove x/exp dep (#21281)

This commit is contained in:
Julien Robert
2024-08-19 13:14:34 +00:00
committed by GitHub
parent 294b608022
commit 6f30de3a41
37 changed files with 115 additions and 122 deletions
+3 -2
View File
@@ -24,12 +24,13 @@ import (
"encoding/json"
"errors"
"fmt"
"maps"
"slices"
"sort"
abci "github.com/cometbft/cometbft/api/cometbft/abci/v1"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
"golang.org/x/exp/maps"
"google.golang.org/grpc"
"cosmossdk.io/core/appmodule"
@@ -832,7 +833,7 @@ func (m *Manager) GetVersionMap() appmodule.VersionMap {
// ModuleNames returns list of all module names, without any particular order.
func (m *Manager) ModuleNames() []string {
return maps.Keys(m.Modules)
return slices.Collect(maps.Keys(m.Modules))
}
// DefaultMigrationsOrder returns a default migrations order: ascending alphabetical by module name,