Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix / Upgrade handler v1.6.0 #384

Merged
merged 3 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/upgrades/v8/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/sge-network/sge/app/upgrades"
)

// UpgradeName defines the on-chain upgrade name for the v1.6.0 upgrade.
const UpgradeName = "v1.6.0"
// UpgradeName defines the on-chain upgrade name for the v1.6.1 upgrade.
const UpgradeName = "v1.6.1"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
Expand Down
6 changes: 4 additions & 2 deletions app/upgrades/v8/upgrades.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package v8

import (
"sort"

sdkmath "cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
"github.com/google/uuid"
"github.com/sge-network/sge/app/keepers"
"github.com/sge-network/sge/x/reward/types"
)
Expand All @@ -29,9 +30,10 @@ func CreateUpgradeHandler(
for addr := range promoters {
promoterAddresses = append(promoterAddresses, addr)
}
sort.Strings(promoterAddresses)

if len(promoterAddresses) > 0 {
promoterUID := uuid.NewString()
promoterUID := "f0630627-9e4e-48f3-8cd5-1422b46d2175"
k.RewardKeeper.SetPromoter(ctx, types.Promoter{
Creator: promoterAddresses[0],
UID: promoterUID,
Expand Down
Loading