From def228d0ad60258412fb473567607c38af55a2d5 Mon Sep 17 00:00:00 2001 From: yihuang Date: Sat, 24 Feb 2024 21:43:01 +0800 Subject: [PATCH] fix(simapp): typo in GetStoreKeys (#19544) --- simapp/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simapp/app.go b/simapp/app.go index 68654666b046..3c27030af82d 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -691,7 +691,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) }