Skip to content

Commit

Permalink
chore: fix misc linter errors (cosmos#15145)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski authored Feb 23, 2023
1 parent 976ecd4 commit 4c51b77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions types/mempool/sender_nonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ func (snm *SenderNonceMempool) setSeed(seed int64) {
// NextSenderTx returns the next transaction for a given sender by nonce order,
// i.e. the next valid transaction for the sender. If no such transaction exists,
// nil will be returned.
func (mp *SenderNonceMempool) NextSenderTx(sender string) sdk.Tx {
senderIndex, ok := mp.senders[sender]
func (snm *SenderNonceMempool) NextSenderTx(sender string) sdk.Tx {
senderIndex, ok := snm.senders[sender]
if !ok {
return nil
}
Expand Down
1 change: 0 additions & 1 deletion x/gov/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func InitGenesis(ctx sdk.Context, ak types.AccountKeeper, bk types.BankKeeper, k
if !balance.Equal(totalDeposits) {
panic(fmt.Sprintf("expected module account was %s but we got %s", balance.String(), totalDeposits.String()))
}

}

// ExportGenesis - output genesis parameters
Expand Down
2 changes: 1 addition & 1 deletion x/gov/keeper/constitution.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ func (keeper Keeper) GetConstitution(ctx sdk.Context) (constitution string) {

func (keeper Keeper) SetConstitution(ctx sdk.Context, constitution string) {
store := ctx.KVStore(keeper.storeKey)
store.Set([]byte(types.KeyConstitution), []byte(constitution))
store.Set(types.KeyConstitution, []byte(constitution))
}

0 comments on commit 4c51b77

Please sign in to comment.