Skip to content

Commit a0faab3

Browse files
mergify[bot]akaladarshitac0turtlejulienrbrt
authored
feat(x/gov): emit proposer address in submit proposal event (backport #19842) (#19844)
Co-authored-by: Aryan Tikarya <akaladarshi@gmail.com> Co-authored-by: marbar3778 <marbar3778@yahoo.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
1 parent 87ad797 commit a0faab3

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,18 @@ Ref: https://keepachangelog.com/en/1.0.0/
3838

3939
## [Unreleased]
4040

41-
## Bug Fixes
42-
43-
* (crypto) [#19691](https://github.com/cosmos/cosmos-sdk/pull/19745) Fix tx sign doesn't throw an error when incorrect Ledger is used.
44-
4541
### Features
4642

4743
* (types) [#19759](https://github.com/cosmos/cosmos-sdk/pull/19759) Align SignerExtractionAdapter in PriorityNonceMempool Remove.
4844

45+
### Improvements
46+
47+
* (x/gov) [#19844](https://github.com/cosmos/cosmos-sdk/pull/19844) Emit the proposer of governance proposals.
48+
49+
## Bug Fixes
50+
51+
* (crypto) [#19691](https://github.com/cosmos/cosmos-sdk/pull/19745) Fix tx sign doesn't throw an error when incorrect Ledger is used.
52+
4953
## [v0.50.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.5) - 2024-03-12
5054

5155
### Features

x/gov/keeper/proposal.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func (keeper Keeper) SubmitProposal(ctx context.Context, messages []sdk.Msg, met
123123
sdk.NewEvent(
124124
types.EventTypeSubmitProposal,
125125
sdk.NewAttribute(types.AttributeKeyProposalID, fmt.Sprintf("%d", proposalID)),
126+
sdk.NewAttribute(types.AttributeKeyProposalProposer, proposer.String()),
126127
sdk.NewAttribute(types.AttributeKeyProposalMessages, msgsStr),
127128
),
128129
)

x/gov/types/events.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const (
2222
AttributeValueExpeditedProposalRejected = "expedited_proposal_rejected" // didn't meet expedited vote quorum
2323
AttributeValueProposalFailed = "proposal_failed" // error on proposal handler
2424
AttributeValueProposalCanceled = "proposal_canceled" // error on proposal handler
25+
AttributeKeyProposalProposer = "proposal_proposer" // account address of the proposer
2526

2627
AttributeKeyProposalType = "proposal_type"
2728
AttributeSignalTitle = "signal_title"

0 commit comments

Comments
 (0)