Skip to content

Commit

Permalink
Add some more coins to the master faucet in amazonas upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Sep 12, 2019
1 parent 1bf8091 commit a06dbf7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,13 @@ func NewXrnApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bo
app.bankKeeper, app.feeCollectionKeeper)
app.upgradeKeeper = upgrade.NewKeeper(app.upgradeStoreKey, app.cdc)
// this configures a no-op upgrade handler for the "el-choco" upgrade
app.upgradeKeeper.SetUpgradeHandler("amazonas", func(ctx sdk.Context, plan upgrade.Plan) {})
app.upgradeKeeper.SetUpgradeHandler("amazonas", 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
govRouter := gov.NewRouter()
Expand Down

0 comments on commit a06dbf7

Please sign in to comment.