Skip to content

Commit

Permalink
chore: add migration to fix airdrop vesting accounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurist-85 committed Oct 13, 2023
1 parent e87024c commit 4c071ea
Show file tree
Hide file tree
Showing 4 changed files with 9,206 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ import (
v141 "github.com/haqq-network/haqq/app/upgrades/v1.4.1"
v142 "github.com/haqq-network/haqq/app/upgrades/v1.4.2"
v160 "github.com/haqq-network/haqq/app/upgrades/v1.6.0"
v161 "github.com/haqq-network/haqq/app/upgrades/v1.6.1"

// NOTE: override ICS20 keeper to support IBC transfers of ERC20 tokens
"github.com/haqq-network/haqq/x/ibc/transfer"
Expand Down Expand Up @@ -1189,6 +1190,16 @@ func (app *Haqq) setupUpgradeHandlers() {
),
)

// v1.6.1 Security upgrade
app.UpgradeKeeper.SetUpgradeHandler(
v161.UpgradeName,
v161.CreateUpgradeHandler(
app.mm,
app.configurator,
app.AccountKeeper,
),
)

// When a planned update height is reached, the old binary will panic
// writing on disk the height and name of the update that triggered it
// This will read that value, and execute the preparations for the upgrade.
Expand Down
Loading

0 comments on commit 4c071ea

Please sign in to comment.