Skip to content

Commit

Permalink
chore: iterate over markets using keys
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Dec 17, 2024
1 parent dd79226 commit a37d929
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/upgrades/v4/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package v4

import (
"context"
"maps"
"slices"
"strings"

upgradetypes "cosmossdk.io/x/upgrade/types"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit a37d929

Please sign in to comment.