Skip to content

Commit c72940a

Browse files
committed
fix cherry-picking errors
1 parent bb6488f commit c72940a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

baseapp/baseapp.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,7 @@ func (app *BaseApp) MountMemoryStores(keys map[string]*storetypes.MemoryStoreKey
359359
// MountObjectStores mounts all transient object stores with the BaseApp's internal
360360
// commit multi-store.
361361
func (app *BaseApp) MountObjectStores(keys map[string]*storetypes.ObjectStoreKey) {
362-
skeys := maps.Keys(keys)
363-
sort.Strings(skeys)
362+
skeys := slices.Sorted(maps.Keys(keys))
364363
for _, key := range skeys {
365364
memKey := keys[key]
366365
app.MountStore(memKey, storetypes.StoreTypeObject)

simapp/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ require (
228228

229229
// Below are the long-lived replace of the SimApp
230230
replace (
231+
cosmossdk.io/store => ../store
231232
// use cosmos fork of keyring
232233
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
233234
// Simapp always use the latest version of the cosmos-sdk

store/iavl/tree.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package iavl
33
import (
44
"fmt"
55

6-
dbm "github.com/cosmos/cosmos-db"
76
"github.com/cosmos/iavl"
7+
"github.com/cosmos/iavl/db"
88
)
99

1010
var (
@@ -31,7 +31,7 @@ type (
3131
GetVersioned(key []byte, version int64) ([]byte, error)
3232
GetImmutable(version int64) (*iavl.ImmutableTree, error)
3333
SetInitialVersion(version uint64)
34-
Iterator(start, end []byte, ascending bool) (dbm.Iterator, error)
34+
Iterator(start, end []byte, ascending bool) (db.Iterator, error)
3535
AvailableVersions() []int
3636
LoadVersionForOverwriting(targetVersion int64) error
3737
TraverseStateChanges(startVersion, endVersion int64, fn func(version int64, changeSet *iavl.ChangeSet) error) error

0 commit comments

Comments
 (0)