Merge PR #6043: Fix some lcd test failures in gaia

This commit is contained in:
Jack Zampolin 2020-04-21 11:13:03 -07:00 committed by GitHub
parent c15f112cf1
commit 71c62a432f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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