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

load bit-commiter module #37

Closed
wants to merge 3 commits into from
Closed
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
1 change: 0 additions & 1 deletion testutil/keeper/bitcoincommiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func BitcoincommiterKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
)
k := keeper.NewKeeper(
cdc,
storeKey,
memStoreKey,
paramsSubspace,
)
Expand Down
3 changes: 0 additions & 3 deletions x/bitcoincommiter/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ import (
type (
Keeper struct {
cdc codec.BinaryCodec
storeKey storetypes.StoreKey
memKey storetypes.StoreKey
paramstore paramtypes.Subspace
}
)

func NewKeeper(
cdc codec.BinaryCodec,
storeKey,
memKey storetypes.StoreKey,
ps paramtypes.Subspace,
) *Keeper {
Expand All @@ -34,7 +32,6 @@ func NewKeeper(

return &Keeper{
cdc: cdc,
storeKey: storeKey,
memKey: memKey,
paramstore: ps,
}
Expand Down
6 changes: 1 addition & 5 deletions x/bitcoincommiter/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,18 @@
type AppModule struct {
AppModuleBasic

keeper keeper.Keeper
accountKeeper types.AccountKeeper
bankKeeper types.BankKeeper
keeper keeper.Keeper
}

func NewAppModule(
cdc codec.Codec,
keeper keeper.Keeper,
accountKeeper types.AccountKeeper,

Check warning on line 106 in x/bitcoincommiter/module.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

unused-parameter: parameter 'accountKeeper' seems to be unused, consider removing or renaming it as _ (revive)
bankKeeper types.BankKeeper,

Check warning on line 107 in x/bitcoincommiter/module.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

unused-parameter: parameter 'bankKeeper' seems to be unused, consider removing or renaming it as _ (revive)
) AppModule {
return AppModule{
AppModuleBasic: NewAppModuleBasic(cdc),
keeper: keeper,
accountKeeper: accountKeeper,
bankKeeper: bankKeeper,
}
}

Expand Down
Loading