From fcebdce3f07d96f9febfe43915a4753fb9aeccfc Mon Sep 17 00:00:00 2001 From: MSalopek Date: Mon, 11 Mar 2024 17:26:10 +0100 Subject: [PATCH] democracy: update gov proposal whitelist (add legacy test props) --- app/consumer-democracy/proposals_whitelisting.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/consumer-democracy/proposals_whitelisting.go b/app/consumer-democracy/proposals_whitelisting.go index 14af371da6..f46567be06 100644 --- a/app/consumer-democracy/proposals_whitelisting.go +++ b/app/consumer-democracy/proposals_whitelisting.go @@ -9,9 +9,10 @@ import ( func IsProposalWhitelisted(content v1beta1.Content) bool { switch c := content.(type) { + case *v1beta1.TextProposal: + return true case *proposal.ParameterChangeProposal: return isLegacyParamChangeWhitelisted(c.Changes) - default: return false } @@ -44,6 +45,7 @@ var WhiteListModule = map[string]struct{}{ "/cosmos.staking.v1beta1.MsgUpdateParams": {}, "/cosmos.distribution.v1beta1.MsgUpdateParams": {}, "/cosmos.mint.v1beta1.MsgUpdateParams": {}, + "/cosmos.gov.v1beta1.TextProposal": {}, } func IsModuleWhiteList(typeUrl string) bool {