diff --git a/x/epochstorage/keeper/stake_storage.go b/x/epochstorage/keeper/stake_storage.go index 8d81859a29..3f53fa764e 100644 --- a/x/epochstorage/keeper/stake_storage.go +++ b/x/epochstorage/keeper/stake_storage.go @@ -354,7 +354,7 @@ func (k Keeper) AppendUnstakeEntry(ctx sdk.Context, storageType string, stakeEnt // this stake storage entries are sorted by deadline stakeStorage, found := k.GetStakeStorageUnstake(ctx, storageType) - entries := []types.StakeEntry{} + var entries []types.StakeEntry if !found { entries = []types.StakeEntry{stakeEntry} // create a new one