fix(simapp): typo in GetStoreKeys (backport #19544) (#19547)

Co-authored-by: yihuang <huang@crypto.com>
This commit is contained in:
mergify[bot]
2024-02-24 20:05:12 +00:00
committed by GitHub
co-authored by yihuang
parent ccd8d5e875
commit 95cc64b2d4
+1 -1
View File
@@ -711,7 +711,7 @@ func (app *SimApp) GetKey(storeKey string) *storetypes.KVStoreKey {
// GetStoreKeys returns all the stored store keys.
func (app *SimApp) GetStoreKeys() []storetypes.StoreKey {
keys := make([]storetypes.StoreKey, len(app.keys))
keys := make([]storetypes.StoreKey, 0, len(app.keys))
for _, key := range app.keys {
keys = append(keys, key)
}