Skip to content

Commit

Permalink
democracy: update gov proposal whitelist (add legacy test props)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Mar 11, 2024
1 parent f228171 commit fcebdce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/consumer-democracy/proposals_whitelisting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit fcebdce

Please sign in to comment.