Skip to content

Commit

Permalink
incr gov metadata length to max uint64 (from 255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Sep 2, 2023
1 parent 9835215 commit b518d3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/keepers/keepers.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package keepers

import (
"math"
"path/filepath"

"github.com/CosmWasm/wasmd/x/wasm"
Expand Down Expand Up @@ -344,14 +345,18 @@ func NewAppKeepers(
AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(appKeepers.UpgradeKeeper)).
AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(appKeepers.IBCKeeper.ClientKeeper))

// Update the max metadata length to be >255
govConfig := govtypes.DefaultConfig()
govConfig.MaxMetadataLen = math.MaxUint64

govKeeper := govkeeper.NewKeeper(
appCodec,
appKeepers.keys[govtypes.StoreKey],
appKeepers.AccountKeeper,
appKeepers.BankKeeper,
appKeepers.StakingKeeper,
bApp.MsgServiceRouter(),
govtypes.DefaultConfig(),
govConfig,
govModAddress,
)
appKeepers.GovKeeper = *govKeeper.SetHooks(
Expand Down

0 comments on commit b518d3c

Please sign in to comment.