Skip to content

Commit 89a6ef1

Browse files
authored
feat: set MaxMetadataLen for proposals longer (#144)
1 parent d136753 commit 89a6ef1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/keepers/keepers.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -374,14 +374,17 @@ func NewAppKeeper(
374374
AddRoute(erc20types.RouterKey, erc20.NewErc20ProposalHandler(&appKeepers.Erc20Keeper)).
375375
AddRoute(volunteertypes.RouterKey, volunteerkeeper.NewVolunteerValidatorProposalHandler(appKeepers.VolunteerKeeper))
376376

377+
govConfig := govtypes.DefaultConfig()
378+
// set the MaxMetadataLen for proposals to the same value as it was pre-sdk v0.47.x
379+
govConfig.MaxMetadataLen = 10200
377380
govKeeper := govkeeper.NewKeeper(
378381
appCodec,
379382
appKeepers.keys[govtypes.StoreKey],
380383
appKeepers.AccountKeeper,
381384
appKeepers.BankKeeper,
382385
appKeepers.StakingKeeper,
383386
bApp.MsgServiceRouter(),
384-
govtypes.DefaultConfig(),
387+
govConfig,
385388
govModAddress,
386389
)
387390

0 commit comments

Comments
 (0)