Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
nit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Nov 1, 2023
1 parent 599fa93 commit 069634b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
4 changes: 2 additions & 2 deletions x/blocksdk/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ type Keeper struct {
cdc codec.BinaryCodec
storeKey storetypes.StoreKey

// The address that is capable of executing a MsgUpdateParams message.
// The address that is capable of executing a message.
// Typically this will be the governance module's address.
authority string
}

// NewKeeper is a wrapper around NewKeeperWithRewardsAddressProvider for backwards compatibility.
// NewKeeper creates a new x/blocksdk keeper.
func NewKeeper(
cdc codec.BinaryCodec,
storeKey storetypes.StoreKey,
Expand Down
15 changes: 1 addition & 14 deletions x/blocksdk/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,13 @@ import (
testutils "github.com/skip-mev/block-sdk/testutils"
"github.com/skip-mev/block-sdk/x/blocksdk/keeper"
"github.com/skip-mev/block-sdk/x/blocksdk/types"
"github.com/skip-mev/block-sdk/x/blocksdk/types/mocks"

"github.com/stretchr/testify/suite"
)

type KeeperTestSuite struct {
suite.Suite

blocksdKeeper keeper.Keeper
bankKeeper *mocks.BankKeeper
accountKeeper *mocks.AccountKeeper
distrKeeper *mocks.DistributionKeeper
stakingKeeper *mocks.StakingKeeper
encCfg testutils.EncodingConfig
ctx sdk.Context
msgServer types.MsgServer
Expand All @@ -41,14 +35,7 @@ func (s *KeeperTestSuite) SetupTest() {
s.key = storetypes.NewKVStoreKey(types.StoreKey)
testCtx := testutil.DefaultContextWithDB(s.T(), s.key, storetypes.NewTransientStoreKey("transient_test"))
s.ctx = testCtx.Ctx

s.accountKeeper = mocks.NewAccountKeeper(s.T())
s.accountKeeper.On("GetModuleAddress", types.ModuleName).Return(sdk.AccAddress{}).Maybe()

s.bankKeeper = mocks.NewBankKeeper(s.T())
s.distrKeeper = mocks.NewDistributionKeeper(s.T())
s.stakingKeeper = mocks.NewStakingKeeper(s.T())
s.authorityAccount = sdk.AccAddress([]byte("authority"))
s.authorityAccount = []byte("authority")
s.blocksdKeeper = keeper.NewKeeper(
s.encCfg.Codec,
s.key,
Expand Down
2 changes: 1 addition & 1 deletion x/blocksdk/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
)

const (
prefixLanes = iota + 1
prefixLanes = iota
)

// KeyLanes is the store key for the lanes.
Expand Down

0 comments on commit 069634b

Please sign in to comment.