Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Nov 10, 2023
1 parent 20054c0 commit c03acb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/gov/client/utils/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func QueryVoteByTxQuery(clientCtx client.Context, params v1.QueryVoteParams) ([]
}

// QueryProposerByTxQuery will query for a proposer of a governance proposal by ID.
// Deprecated: Should not be used, as not always accurate. It will be removed in v0.51.
func QueryProposerByTxQuery(clientCtx client.Context, proposalID uint64) (Proposer, error) {
q := fmt.Sprintf("%s.%s='%d'", types.EventTypeSubmitProposal, types.AttributeKeyProposalID, proposalID)
searchResult, err := authtx.QueryTxsByEvents(clientCtx, defaultPage, defaultLimit, q, "")
Expand Down

0 comments on commit c03acb4

Please sign in to comment.