From 95cc64b2d4333e956aa01014a059df0140a690de Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 24 Feb 2024 21:05:12 +0100 Subject: [PATCH] fix(simapp): typo in GetStoreKeys (backport #19544) (#19547) Co-authored-by: yihuang --- simapp/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simapp/app.go b/simapp/app.go index 07557dfab079..c806c50216ee 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -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) }