chore: fix misc linter errors (#15145)

This commit is contained in:
Matt Kocubinski 2023-02-23 16:42:52 -06:00 committed by GitHub
parent 976ecd4c08
commit 4c51b77bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -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
}

View File

@ -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

View File

@ -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))
}