Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chixiaoxiao committed Mar 14, 2024
1 parent 3fe4097 commit ce30686
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/integration/staking/keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package keeper_test

import (
"fmt"
"github.com/cosmos/cosmos-sdk/types/module"
"testing"

abci "github.com/cometbft/cometbft/abci/types"
Expand All @@ -16,6 +15,7 @@ import (

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
)

func bootstrapGenesisTest(t *testing.T, numAddrs int) (*fixture, []sdk.AccAddress) {
Expand Down
4 changes: 2 additions & 2 deletions x/genutil/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package genutil
import (
"context"
"fmt"
"github.com/cosmos/cosmos-sdk/types/module"

"cosmossdk.io/core/genesis"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/x/genutil/types"
)

Expand Down Expand Up @@ -42,5 +42,5 @@ func InitGenesis(
}
return validatorUpdates, nil
}
return
return nil, nil
}
2 changes: 1 addition & 1 deletion x/staking/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package keeper
import (
"context"
"fmt"
"github.com/cosmos/cosmos-sdk/types/module"
"time"

"cosmossdk.io/x/staking/types"

"github.com/cosmos/cosmos-sdk/telemetry"
"github.com/cosmos/cosmos-sdk/types/module"
)

// BeginBlocker will persist the current header and validator set as a historical entry
Expand Down
2 changes: 1 addition & 1 deletion x/staking/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package keeper
import (
"context"
"fmt"
"github.com/cosmos/cosmos-sdk/types/module"

abci "github.com/cometbft/cometbft/abci/types"

Expand All @@ -12,6 +11,7 @@ import (
"cosmossdk.io/x/staking/types"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
)

// InitGenesis sets the pool and parameters for the provided keeper. For each
Expand Down

0 comments on commit ce30686

Please sign in to comment.