Skip to content

Commit

Permalink
handle is_118 update prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ajansari95 committed Jun 13, 2023
1 parent 5609c09 commit 23c85fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const (
V010402rc7UpgradeName = "v1.4.2-rc7"
V010403rc0UpgradeName = "v1.4.3-rc0"
V010404beta0UpgradeName = "v1.4.4-beta.0"
V010404beta1UpgradeName = "v1.4.4-beta.1"
)

// Upgrade defines a struct containing necessary fields that a SoftwareUpgradeProposal
Expand Down
1 change: 1 addition & 0 deletions app/upgrades/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func Upgrades() []Upgrade {
{UpgradeName: V010402rc7UpgradeName, CreateUpgradeHandler: NoOpHandler},
{UpgradeName: V010403rc0UpgradeName, CreateUpgradeHandler: V010403rc0UpgradeHandler},
{UpgradeName: V010404beta0UpgradeName, CreateUpgradeHandler: V010404beta0UpgradeHandler},
{UpgradeName: V010404beta1UpgradeName, CreateUpgradeHandler: NoOpHandler},
}
}

Expand Down
7 changes: 7 additions & 0 deletions x/interchainstaking/keeper/proposal_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ func (k *Keeper) HandleUpdateZoneProposal(ctx sdk.Context, p *types.UpdateZonePr
case "account_prefix":
zone.AccountPrefix = change.Value

case "is_118":
boolValue, err := strconv.ParseBool(change.Value)
if err != nil {
return err
}
zone.Is_118 = boolValue

case "connection_id":
if !strings.HasPrefix(change.Value, "connection-") {
return errors.New("unexpected connection format")
Expand Down

0 comments on commit 23c85fb

Please sign in to comment.