Skip to content

Commit

Permalink
remove cdc from module.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Oct 30, 2023
1 parent ab2bb1f commit 879b7bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions x/counter/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ var (
)

// AppModuleBasic defines the basic application module used by the consensus module.
type AppModuleBasic struct {
cdc codec.Codec
}
type AppModuleBasic struct{}

// Name returns the consensus module's name.
func (AppModuleBasic) Name() string { return types.ModuleName }
Expand Down Expand Up @@ -67,7 +65,7 @@ func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error {
// NewAppModule creates a new AppModule object
func NewAppModule(cdc codec.Codec, keeper keeper.Keeper) AppModule {
return AppModule{
AppModuleBasic: AppModuleBasic{cdc: cdc},
AppModuleBasic: AppModuleBasic{},
keeper: keeper,
}
}
Expand Down

0 comments on commit 879b7bc

Please sign in to comment.