Skip to content

Commit

Permalink
Add patagonia proposal upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
anilcse committed Jan 23, 2020
1 parent 173ebb3 commit d5e0b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ func NewXrnApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bo
app.upgradeKeeper = upgrade.NewKeeper(app.upgradeStoreKey, app.cdc)

// this configures a no-op upgrade handler for the "patagonia" upgrade
app.upgradeKeeper.SetUpgradeHandler("darien-gap", func(ctx sdk.Context, plan upgrade.Plan) {
app.upgradeKeeper.SetUpgradeHandler("patagonia", func(ctx sdk.Context, plan upgrade.Plan) {
// Add some more coins to the faucet account
addr, err := sdk.AccAddressFromBech32("xrn:1xrsmkqh305m09tc5x73v4t3wtcuqmf6cgy2taw")
addr, err := sdk.AccAddressFromBech32("xrn:1vkxgpw4xtyeljzvqnxxy84kpa6udqaqw8leqjg")
if err == nil {
_, _ = app.bankKeeper.AddCoins(ctx, addr, sdk.Coins{sdk.Coin{Denom: "tree", Amount: sdk.NewInt(10000000)}})
}
Expand Down

0 comments on commit d5e0b97

Please sign in to comment.