Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Nov 10, 2023
1 parent 00f2e90 commit ac395c7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions x/gov/keeper/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ import (
// SubmitProposal creates a new proposal given an array of messages
func (keeper Keeper) SubmitProposal(ctx context.Context, messages []sdk.Msg, metadata, title, summary string, proposer sdk.AccAddress, expedited bool) (v1.Proposal, error) {
sdkCtx := sdk.UnwrapSDKContext(ctx)


// This method checks that all message metadata, summary and title
// has te expected length defined in the module configuration.
// This method checks that all message metadata, summary and title
// has te expected length defined in the module configuration.
if err := keeper.validateProposalLengths(metadata, title, summary); err != nil {
return v1.Proposal{}, err
return v1.Proposal{}, err
}

// Will hold a comma-separated string of all Msg type URLs.
Expand Down

0 comments on commit ac395c7

Please sign in to comment.