Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/github.com/cosmos/cosm…
Browse files Browse the repository at this point in the history
…os-sdk-0.50.0-rc.1
  • Loading branch information
julienrbrt authored Sep 26, 2023
2 parents c70189f + c73dcb5 commit f85c7d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
9 changes: 0 additions & 9 deletions codec.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
package example

import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
types "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
)

// RegisterLegacyAminoCodec registers the necessary interfaces and concrete types
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "example/MsgUpdateParams")
legacy.RegisterAminoMsg(cdc, &MsgIncrementCounter{}, "example/MsgIncrementCounter")
}

// RegisterInterfaces registers the interfaces types with the interface registry.
func RegisterInterfaces(registry types.InterfaceRegistry) {
registry.RegisterImplementations((*sdk.Msg)(nil),
Expand Down
5 changes: 2 additions & 3 deletions module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ func NewAppModuleBasic(m AppModule) module.AppModuleBasic {
func (AppModule) Name() string { return example.ModuleName }

// RegisterLegacyAminoCodec registers the example module's types on the LegacyAmino codec.
func (AppModule) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
example.RegisterLegacyAminoCodec(cdc)
}
// New modules do not need to support Amino.
func (AppModule) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {}

// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the example module.
func (AppModule) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *gwruntime.ServeMux) {
Expand Down

0 comments on commit f85c7d6

Please sign in to comment.