Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix misc linter errors #15145

Merged
merged 1 commit into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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))
}