From 707392982a455ed8df8780220fa128ae660c8435 Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Mon, 30 Oct 2023 11:53:12 +0900 Subject: [PATCH] remove unnecessary comma --- x/gov/keeper/proposal.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/gov/keeper/proposal.go b/x/gov/keeper/proposal.go index 907af584..043e5b8d 100644 --- a/x/gov/keeper/proposal.go +++ b/x/gov/keeper/proposal.go @@ -3,6 +3,7 @@ package keeper import ( goerrors "errors" "fmt" + "strings" "cosmossdk.io/errors" "github.com/cosmos/cosmos-sdk/client" @@ -36,7 +37,7 @@ func (keeper Keeper) SubmitProposal(ctx sdk.Context, messages []sdk.Msg, metadat // Loop through all messages and confirm that each has a handler and the gov module account // as the only signer for _, msg := range messages { - msgsStr += fmt.Sprintf(",%s", sdk.MsgTypeURL(msg)) + strings.Join([]string{msgsStr, sdk.MsgTypeURL(msg)}, ",") // perform a basic validation of the message if err := msg.ValidateBasic(); err != nil {