Skip to content

Commit

Permalink
feat: set MaxMetadataLen for proposals longer (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoosah authored and JoowonYun committed Aug 22, 2024
1 parent f8ede53 commit 0951805
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,17 @@ func NewAppKeeper(
AddRoute(erc20types.RouterKey, erc20.NewErc20ProposalHandler(&appKeepers.Erc20Keeper)).
AddRoute(volunteertypes.RouterKey, volunteerkeeper.NewVolunteerValidatorProposalHandler(appKeepers.VolunteerKeeper))

govConfig := govtypes.DefaultConfig()
// set the MaxMetadataLen for proposals to the same value as it was pre-sdk v0.47.x
govConfig.MaxMetadataLen = 10200
govKeeper := govkeeper.NewKeeper(
appCodec,
appKeepers.keys[govtypes.StoreKey],
appKeepers.AccountKeeper,
appKeepers.BankKeeper,
appKeepers.StakingKeeper,
bApp.MsgServiceRouter(),
govtypes.DefaultConfig(),
govConfig,
govModAddress,
)

Expand Down

0 comments on commit 0951805

Please sign in to comment.