Skip to content

Commit

Permalink
remove unnecessary comma
Browse files Browse the repository at this point in the history
  • Loading branch information
Vritra4 committed Oct 30, 2023
1 parent 72af8a0 commit 7073929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/gov/keeper/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package keeper
import (
goerrors "errors"
"fmt"
"strings"

"cosmossdk.io/errors"
"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7073929

Please sign in to comment.