diff --git a/x/committee/alias.go b/x/committee/alias.go index c326312b..524448dc 100644 --- a/x/committee/alias.go +++ b/x/committee/alias.go @@ -12,6 +12,7 @@ const ( AttributeKeyCommitteeID = types.AttributeKeyCommitteeID AttributeKeyProposalCloseStatus = types.AttributeKeyProposalCloseStatus AttributeKeyProposalID = types.AttributeKeyProposalID + AttributeKeyVoter = types.AttributeKeyVoter AttributeValueCategory = types.AttributeValueCategory AttributeValueProposalFailed = types.AttributeValueProposalFailed AttributeValueProposalPassed = types.AttributeValueProposalPassed diff --git a/x/committee/keeper/proposal.go b/x/committee/keeper/proposal.go index 47fbd8b4..46ac5b9e 100644 --- a/x/committee/keeper/proposal.go +++ b/x/committee/keeper/proposal.go @@ -74,6 +74,7 @@ func (k Keeper) AddVote(ctx sdk.Context, proposalID uint64, voter sdk.AccAddress types.EventTypeProposalVote, sdk.NewAttribute(types.AttributeKeyCommitteeID, fmt.Sprintf("%d", com.ID)), sdk.NewAttribute(types.AttributeKeyProposalID, fmt.Sprintf("%d", pr.ID)), + sdk.NewAttribute(types.AttributeKeyVoter, voter.String()), ), ) return nil diff --git a/x/committee/types/events.go b/x/committee/types/events.go index 8ccbf667..777256a9 100644 --- a/x/committee/types/events.go +++ b/x/committee/types/events.go @@ -10,6 +10,7 @@ const ( AttributeKeyCommitteeID = "committee_id" AttributeKeyProposalID = "proposal_id" AttributeKeyProposalCloseStatus = "status" + AttributeKeyVoter = "voter" AttributeValueProposalPassed = "proposal_passed" AttributeValueProposalTimeout = "proposal_timeout" AttributeValueProposalFailed = "proposal_failed"