Skip to content

Commit

Permalink
bugfix add treasury burn permission
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-yeo committed May 29, 2021
1 parent f91f293 commit dbe6117
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ var (
markettypes.ModuleName: {authtypes.Minter, authtypes.Burner},
oracletypes.ModuleName: nil,
distrtypes.ModuleName: nil,
treasurytypes.ModuleName: {authtypes.Minter},
treasurytypes.ModuleName: {authtypes.Minter, authtypes.Burner},
stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
govtypes.ModuleName: {authtypes.Burner},
Expand Down Expand Up @@ -505,13 +505,6 @@ func NewTerraApp(
app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter())
app.mm.RegisterServices(app.configurator)

// TODO - remove after bombay migration
// Register upgrade handler for v0.5.0-beta3
app.UpgradeKeeper.SetUpgradeHandler("v0.5.0-beta3", func(ctx sdk.Context, _ upgradetypes.Plan, _ module.VersionMap) (module.VersionMap, error) {
app.Logger().Info("Upgrade successfully done")
return app.mm.RunMigrations(ctx, app.configurator, app.mm.GetVersionMap())
})

// create the simulation manager and define the order of the modules for deterministic simulations
//
// NOTE: this is not required apps that don't use the simulator for fuzz testing
Expand Down

0 comments on commit dbe6117

Please sign in to comment.