@@ -13,7 +13,6 @@ import (
1313 cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
1414 "github.com/cometbft/cometbft/crypto/tmhash"
1515 "github.com/cosmos/gogoproto/proto"
16- "golang.org/x/exp/maps"
1716 "google.golang.org/protobuf/reflect/protoreflect"
1817
1918 "cosmossdk.io/core/header"
@@ -336,7 +335,10 @@ func (app *BaseApp) MountTransientStores(keys map[string]*storetypes.TransientSt
336335// MountMemoryStores mounts all in-memory KVStores with the BaseApp's internal
337336// commit multi-store.
338337func (app * BaseApp ) MountMemoryStores (keys map [string ]* storetypes.MemoryStoreKey ) {
339- skeys := maps .Keys (keys )
338+ skeys := make ([]string , 0 , len (keys ))
339+ for key := range keys {
340+ skeys = append (skeys , key )
341+ }
340342 sort .Strings (skeys )
341343 for _ , key := range skeys {
342344 memKey := keys [key ]
@@ -347,7 +349,10 @@ func (app *BaseApp) MountMemoryStores(keys map[string]*storetypes.MemoryStoreKey
347349// MountObjectStores mounts all transient object stores with the BaseApp's internal
348350// commit multi-store.
349351func (app * BaseApp ) MountObjectStores (keys map [string ]* storetypes.ObjectStoreKey ) {
350- skeys := maps .Keys (keys )
352+ skeys := make ([]string , 0 , len (keys ))
353+ for key := range keys {
354+ skeys = append (skeys , key )
355+ }
351356 sort .Strings (skeys )
352357 for _ , key := range skeys {
353358 memKey := keys [key ]
0 commit comments