Skip to content

Commit

Permalink
Merge PR cosmos#6043: Fix some lcd test failures in gaia
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzampolin authored Apr 21, 2020
1 parent c15f112 commit 71c62a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/gov/client/utils/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func QueryProposerByTxQuery(cliCtx context.CLIContext, proposalID uint64) (Propo
for _, msg := range info.Tx.GetMsgs() {
// there should only be a single proposal under the given conditions
if msg.Type() == types.TypeMsgSubmitProposal {
subMsg := msg.(types.MsgSubmitProposal)
subMsg := msg.(*types.MsgSubmitProposal)
return NewProposer(proposalID, subMsg.Proposer.String()), nil
}
}
Expand Down
4 changes: 2 additions & 2 deletions x/gov/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ var _ MsgSubmitProposalI = &MsgSubmitProposal{}
// NewMsgSubmitProposal returns a (deprecated) MsgSubmitProposal message.
//
// TODO: Remove once client-side Protobuf migration has been completed.
func NewMsgSubmitProposal(content Content, initialDeposit sdk.Coins, proposer sdk.AccAddress) MsgSubmitProposal {
return MsgSubmitProposal{content, initialDeposit, proposer}
func NewMsgSubmitProposal(content Content, initialDeposit sdk.Coins, proposer sdk.AccAddress) *MsgSubmitProposal {
return &MsgSubmitProposal{content, initialDeposit, proposer}
}

// ValidateBasic implements Msg
Expand Down

0 comments on commit 71c62a4

Please sign in to comment.