Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions app/app_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,7 @@ func (s2 *simpleAppModule) EndBlock(s sdk.Context, block abci.RequestEndBlock) [

func setupModuleBasics(bs ...module.AppModule) *module.Manager {
basis := []module.AppModule{}
for _, v := range bs {
basis = append(basis, v)
}
basis = append(basis, bs...)
return module.NewManager(
basis...,
)
Expand Down
12 changes: 3 additions & 9 deletions libs/cosmos-sdk/store/rootmulti/rootmulti_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1504,9 +1504,7 @@ func (src Store) Copy() *Store {
StoreInfos: make([]storeInfo, 0),
}

for _, info := range src.lastCommitInfo.StoreInfos {
dst.lastCommitInfo.StoreInfos = append(dst.lastCommitInfo.StoreInfos, info)
}
dst.lastCommitInfo.StoreInfos = append(dst.lastCommitInfo.StoreInfos, src.lastCommitInfo.StoreInfos...)

for key, value := range src.storesParams {
dst.storesParams[key] = value
Expand All @@ -1520,13 +1518,9 @@ func (src Store) Copy() *Store {
dst.keysByName[key] = value
}

for _, value := range src.pruneHeights {
dst.pruneHeights = append(dst.pruneHeights, value)
}
dst.pruneHeights = append(dst.pruneHeights, src.pruneHeights...)

for _, value := range src.versions {
dst.versions = append(dst.versions, value)
}
dst.versions = append(dst.versions, src.versions...)

return dst
}
Expand Down