From 71c62a432f657663f76db9efc8ab85833bf79344 Mon Sep 17 00:00:00 2001 From: Jack Zampolin Date: Tue, 21 Apr 2020 11:13:03 -0700 Subject: [PATCH] Merge PR #6043: Fix some lcd test failures in gaia --- x/gov/client/utils/query.go | 2 +- x/gov/types/msgs.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x/gov/client/utils/query.go b/x/gov/client/utils/query.go index 0d83a9d1e9..3b092ccccf 100644 --- a/x/gov/client/utils/query.go +++ b/x/gov/client/utils/query.go @@ -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 } } diff --git a/x/gov/types/msgs.go b/x/gov/types/msgs.go index 5f5beb6485..29e3ab9329 100644 --- a/x/gov/types/msgs.go +++ b/x/gov/types/msgs.go @@ -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