Skip to content

Commit

Permalink
Update error content on creating/voting dynamic type proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
kiragpg committed Mar 8, 2024
1 parent a142e1a commit 29c6a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/gov/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (k msgServer) SubmitProposal(goCtx context.Context, msg *types.MsgSubmitPro
router := k.keeper.GetProposalRouter()
isAllowed := router.IsAllowedAddressDynamicProposal(ctx, msg.Proposer, content)
if !isAllowed {
return nil, errors.Wrap(types.ErrNotEnoughPermissions, "spending pool permission")
return nil, errors.Wrap(types.ErrNotEnoughPermissions, "not enough permission to create the proposal")
}
} else {
isAllowed := CheckIfAllowedPermission(ctx, k.keeper, msg.Proposer, content.ProposalPermission())
Expand Down Expand Up @@ -111,7 +111,7 @@ func (k msgServer) VoteProposal(
router := k.keeper.GetProposalRouter()
isAllowed := router.IsAllowedAddressDynamicProposal(ctx, msg.Voter, content)
if !isAllowed {
return nil, errors.Wrap(types.ErrNotEnoughPermissions, "spending pool permission")
return nil, errors.Wrap(types.ErrNotEnoughPermissions, "not enough permission to vote on the proposal")
}
} else {
isAllowed := CheckIfAllowedPermission(ctx, k.keeper, msg.Voter, content.VotePermission())
Expand Down

0 comments on commit 29c6a66

Please sign in to comment.