diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index c9bdf6c348ae..c2d0e2ea015f 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -13,7 +13,6 @@ import ( cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1" "github.com/cometbft/cometbft/crypto/tmhash" "github.com/cosmos/gogoproto/proto" - "golang.org/x/exp/maps" "google.golang.org/protobuf/reflect/protoreflect" "cosmossdk.io/core/header" @@ -336,7 +335,10 @@ func (app *BaseApp) MountTransientStores(keys map[string]*storetypes.TransientSt // MountMemoryStores mounts all in-memory KVStores with the BaseApp's internal // commit multi-store. func (app *BaseApp) MountMemoryStores(keys map[string]*storetypes.MemoryStoreKey) { - skeys := maps.Keys(keys) + skeys := make([]string, 0, len(keys)) + for key := range keys { + skeys = append(skeys, key) + } sort.Strings(skeys) for _, key := range skeys { memKey := keys[key] @@ -347,7 +349,10 @@ func (app *BaseApp) MountMemoryStores(keys map[string]*storetypes.MemoryStoreKey // MountObjectStores mounts all transient object stores with the BaseApp's internal // commit multi-store. func (app *BaseApp) MountObjectStores(keys map[string]*storetypes.ObjectStoreKey) { - skeys := maps.Keys(keys) + skeys := make([]string, 0, len(keys)) + for key := range keys { + skeys = append(skeys, key) + } sort.Strings(skeys) for _, key := range skeys { memKey := keys[key] diff --git a/store/CHANGELOG.md b/store/CHANGELOG.md index 4d170bff0edc..63e4848a718c 100644 --- a/store/CHANGELOG.md +++ b/store/CHANGELOG.md @@ -31,6 +31,10 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] +### Features + +* [#22893](https://github.com/cosmos/cosmos-sdk/pull/22893) Support mount object store in baseapp, add `ObjectStore` api in context. + ## v1.10.0 (December 13, 2024) ### Improvements