Skip to content

Commit

Permalink
set upgrade name to "authz"
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 15, 2022
1 parent 65116c6 commit 35b9a17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ import (
const (
AccountAddressPrefix = "chihuahua"
Name = "chihuahua"
v1UpgradeName = "angryandy"
v2UpgradeName = "chiwawasm"
v202UpgradeName = "minpropdeposit"
v210UpgradeName = "authz"
)

// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
Expand Down Expand Up @@ -611,7 +609,7 @@ func New(
panic(err)
}

if upgradeInfo.Name == v202UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
if upgradeInfo.Name == v210UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := store.StoreUpgrades{
Added: []string{authz.ModuleName},
}
Expand Down Expand Up @@ -784,7 +782,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino

// RegisterUpgradeHandlers returns upgrade handlers
func (app *App) RegisterUpgradeHandlers(cfg module.Configurator) {
app.UpgradeKeeper.SetUpgradeHandler(v202UpgradeName, func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
app.UpgradeKeeper.SetUpgradeHandler(v210UpgradeName, func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
minCommissionRate := sdk.NewDecWithPrec(5, 2)

// Set MinCommissionRate to 0.05
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
github.com/CosmWasm/wasmd v0.28.1-0.20220825115153-261812986e9a
github.com/cosmos/cosmos-sdk v0.45.7
github.com/cosmos/cosmos-sdk v0.45.8
github.com/cosmos/ibc-go/v3 v3.0.0
github.com/prometheus/client_golang v1.13.0
github.com/spf13/cast v1.5.0
Expand Down

0 comments on commit 35b9a17

Please sign in to comment.