Skip to content

Commit 7cf30ef

Browse files

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed
 

‎modules/capability/capability_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type CapabilityTestSuite struct {
3939
}
4040

4141
func (suite *CapabilityTestSuite) SetupTest() {
42-
encodingCfg := moduletestutil.MakeTestEncodingConfig(capability.AppModuleBasic{})
42+
encodingCfg := moduletestutil.MakeTestEncodingConfig(capability.AppModule{})
4343
suite.cdc = encodingCfg.Codec
4444

4545
suite.storeKey = storetypes.NewKVStoreKey(types.StoreKey)

‎modules/capability/keeper/keeper_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (suite *KeeperTestSuite) SetupTest() {
3333
key := storetypes.NewKVStoreKey(types.StoreKey)
3434
testCtx := testutil.DefaultContextWithDB(suite.T(), key, storetypes.NewTransientStoreKey("transient_test"))
3535
suite.ctx = testCtx.Ctx
36-
encCfg := moduletestutil.MakeTestEncodingConfig(capability.AppModuleBasic{})
36+
encCfg := moduletestutil.MakeTestEncodingConfig(capability.AppModule{})
3737
suite.keeper = keeper.NewKeeper(encCfg.Codec, key, key)
3838
}
3939

‎modules/capability/module.go

+1-14
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"time"
88

99
gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime"
10-
"github.com/spf13/cobra"
1110

1211
"cosmossdk.io/core/appmodule"
1312

@@ -26,7 +25,6 @@ import (
2625

2726
var (
2827
_ module.AppModule = (*AppModule)(nil)
29-
_ module.AppModuleBasic = (*AppModuleBasic)(nil)
3028
_ module.AppModuleSimulation = (*AppModule)(nil)
3129
_ module.HasName = (*AppModule)(nil)
3230
_ module.HasConsensusVersion = (*AppModule)(nil)
@@ -48,11 +46,6 @@ func NewAppModuleBasic(cdc codec.Codec) AppModuleBasic {
4846
return AppModuleBasic{cdc: cdc}
4947
}
5048

51-
// Name returns the capability module's name.
52-
func (AppModuleBasic) Name() string {
53-
return types.ModuleName
54-
}
55-
5649
// RegisterLegacyAminoCodec does nothing. Capability does not support amino.
5750
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {}
5851

@@ -77,12 +70,6 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncod
7770
func (AppModuleBasic) RegisterGRPCGatewayRoutes(_ client.Context, _ *gwruntime.ServeMux) {
7871
}
7972

80-
// GetTxCmd returns the capability module's root tx command.
81-
func (AppModuleBasic) GetTxCmd() *cobra.Command { return nil }
82-
83-
// GetQueryCmd returns the capability module's root query command.
84-
func (AppModuleBasic) GetQueryCmd() *cobra.Command { return nil }
85-
8673
// ----------------------------------------------------------------------------
8774
// AppModule
8875
// ----------------------------------------------------------------------------
@@ -112,7 +99,7 @@ func (AppModule) IsAppModule() {}
11299

113100
// Name returns the capability module's name.
114101
func (am AppModule) Name() string {
115-
return am.AppModuleBasic.Name()
102+
return types.ModuleName
116103
}
117104

118105
// InitGenesis performs the capability module's genesis initialization It returns

‎modules/capability/simulation/decoder_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
func TestDecodeStore(t *testing.T) {
19-
encodingCfg := moduletestutil.MakeTestEncodingConfig(capability.AppModuleBasic{})
19+
encodingCfg := moduletestutil.MakeTestEncodingConfig(capability.AppModule{})
2020
dec := simulation.NewDecodeStore(encodingCfg.Codec)
2121

2222
capOwners := types.CapabilityOwners{

0 commit comments

Comments
 (0)
Please sign in to comment.