@@ -4,16 +4,16 @@ import (
44 "context"
55 "errors"
66 "fmt"
7+ "maps"
78 "math"
8- "sort "
9+ "slices "
910 "strconv"
1011 "sync"
1112
1213 abci "github.com/cometbft/cometbft/api/cometbft/abci/v1"
1314 cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
1415 "github.com/cometbft/cometbft/crypto/tmhash"
1516 "github.com/cosmos/gogoproto/proto"
16- "golang.org/x/exp/maps"
1717 "google.golang.org/protobuf/reflect/protoreflect"
1818
1919 "cosmossdk.io/core/header"
@@ -336,8 +336,7 @@ func (app *BaseApp) MountTransientStores(keys map[string]*storetypes.TransientSt
336336// MountMemoryStores mounts all in-memory KVStores with the BaseApp's internal
337337// commit multi-store.
338338func (app * BaseApp ) MountMemoryStores (keys map [string ]* storetypes.MemoryStoreKey ) {
339- skeys := maps .Keys (keys )
340- sort .Strings (skeys )
339+ skeys := slices .Sorted (maps .Keys (keys ))
341340 for _ , key := range skeys {
342341 memKey := keys [key ]
343342 app .MountStore (memKey , storetypes .StoreTypeMemory )
@@ -347,8 +346,7 @@ func (app *BaseApp) MountMemoryStores(keys map[string]*storetypes.MemoryStoreKey
347346// MountObjectStores mounts all transient object stores with the BaseApp's internal
348347// commit multi-store.
349348func (app * BaseApp ) MountObjectStores (keys map [string ]* storetypes.ObjectStoreKey ) {
350- skeys := maps .Keys (keys )
351- sort .Strings (skeys )
349+ skeys := slices .Sorted (maps .Keys (keys ))
352350 for _ , key := range skeys {
353351 memKey := keys [key ]
354352 app .MountStore (memKey , storetypes .StoreTypeObject )
0 commit comments