Skip to content

Commit

Permalink
fix: disable unused amino codec
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <troian.ap@gmail.com>
  • Loading branch information
troian committed Aug 5, 2024
1 parent d6113b3 commit 99120ea
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions go/node/deployment/v1beta3/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ package v1beta3
import (
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/x/authz"
)

var (
amino = codec.NewLegacyAmino()
// amino = codec.NewLegacyAmino()

// ModuleCdc references the global x/deployment module codec. Note, the codec should
// ONLY be used in certain instances of tests and for JSON encoding as Amino is
Expand All @@ -21,12 +20,6 @@ var (
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)

func init() {
RegisterLegacyAminoCodec(amino)
cryptocodec.RegisterCrypto(amino)
amino.Seal()
}

// RegisterLegacyAminoCodec register concrete types on codec
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&MsgCreateDeployment{}, ModuleName+"/"+MsgTypeCreateDeployment, nil)
Expand Down

0 comments on commit 99120ea

Please sign in to comment.