Skip to content

Commit

Permalink
Add darien-gap handler
Browse files Browse the repository at this point in the history
  • Loading branch information
anilcse committed Jan 23, 2020
1 parent 53b14bc commit 173ebb3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,12 @@ 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("papua", func(ctx sdk.Context, plan upgrade.Plan) {
app.upgradeKeeper.SetUpgradeHandler("darien-gap", func(ctx sdk.Context, plan upgrade.Plan) {
// Add some more coins to the faucet account
addr, err := sdk.AccAddressFromBech32("xrn:1xrsmkqh305m09tc5x73v4t3wtcuqmf6cgy2taw")
if err == nil {
_, _ = app.bankKeeper.AddCoins(ctx, addr, sdk.Coins{sdk.Coin{Denom: "tree", Amount: sdk.NewInt(10000000)}})
}
})

// register the proposal types
Expand Down

0 comments on commit 173ebb3

Please sign in to comment.