From a37d929ceb0f8e4c1773656092a173b7635b770b Mon Sep 17 00:00:00 2001 From: Riccardo Montagnin Date: Tue, 17 Dec 2024 11:56:09 +0900 Subject: [PATCH] chore: iterate over markets using keys --- app/upgrades/v4/upgrades.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/upgrades/v4/upgrades.go b/app/upgrades/v4/upgrades.go index 3b83f0c0..d34a10a7 100644 --- a/app/upgrades/v4/upgrades.go +++ b/app/upgrades/v4/upgrades.go @@ -2,6 +2,8 @@ package v4 import ( "context" + "maps" + "slices" "strings" upgradetypes "cosmossdk.io/x/upgrade/types" @@ -31,7 +33,9 @@ func CreateUpgradeHandler( return nil, err } - for ticker, market := range markets { + for _, ticker := range slices.Sorted(maps.Keys(markets)) { + market := markets[ticker] + if strings.Contains(ticker, "TIA") { continue }