chore: fix misc linter errors (#15145)
This commit is contained in:
parent
976ecd4c08
commit
4c51b77bf5
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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))
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user