feat(x/gov): Emit VoterAddr (#17354)
This commit is contained in:
parent
d2b93e050d
commit
85d9791edf
@ -48,6 +48,7 @@ func (keeper Keeper) AddVote(ctx context.Context, proposalID uint64, voterAddr s
|
||||
sdkCtx.EventManager().EmitEvent(
|
||||
sdk.NewEvent(
|
||||
types.EventTypeProposalVote,
|
||||
sdk.NewAttribute(types.AttributeKeyVoter, voterAddr.String()),
|
||||
sdk.NewAttribute(types.AttributeKeyOption, options.String()),
|
||||
sdk.NewAttribute(types.AttributeKeyProposalID, fmt.Sprintf("%d", proposalID)),
|
||||
),
|
||||
|
||||
@ -10,6 +10,7 @@ const (
|
||||
EventTypeCancelProposal = "cancel_proposal"
|
||||
|
||||
AttributeKeyProposalResult = "proposal_result"
|
||||
AttributeKeyVoter = "voter"
|
||||
AttributeKeyOption = "option"
|
||||
AttributeKeyProposalID = "proposal_id"
|
||||
AttributeKeyProposalMessages = "proposal_messages" // Msg type_urls in the proposal
|
||||
|
||||
Loading…
Reference in New Issue
Block a user