diff --git a/modules/apps/27-interchain-accounts/types/codec.go b/modules/apps/27-interchain-accounts/types/codec.go index f81a14eb70e..2f2e92f2208 100644 --- a/modules/apps/27-interchain-accounts/types/codec.go +++ b/modules/apps/27-interchain-accounts/types/codec.go @@ -22,11 +22,6 @@ var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) func RegisterInterfaces(registry codectypes.InterfaceRegistry) { registry.RegisterImplementations((*authtypes.AccountI)(nil), &InterchainAccount{}) registry.RegisterImplementations((*authtypes.GenesisAccount)(nil), &InterchainAccount{}) - - registry.RegisterImplementations( - (*exported.CallbackPacketData)(nil), - &InterchainAccountPacketData{}, - ) } // SerializeCosmosTx serializes a slice of sdk.Msg's using the CosmosTx type. The sdk.Msg's are diff --git a/modules/apps/27-interchain-accounts/types/codec_test.go b/modules/apps/27-interchain-accounts/types/codec_test.go index 6ba9e941341..8f77d4fb93d 100644 --- a/modules/apps/27-interchain-accounts/types/codec_test.go +++ b/modules/apps/27-interchain-accounts/types/codec_test.go @@ -14,28 +14,6 @@ import ( "github.com/cosmos/ibc-go/v7/testing/simapp" ) -func (suite *TypesTestSuite) TestUnmarshalCallbackPacketData() { - sourceCallbackAddress := "sourceCallbackAddress" - - packetData := types.InterchainAccountPacketData{ - Type: types.EXECUTE_TX, - Data: []byte("data"), - Memo: fmt.Sprintf("{\"callbacks\": {\"src_callback_address\": \"%s\"}}", sourceCallbackAddress), - } - - types.RegisterInterfaces(types.ModuleCdc.InterfaceRegistry()) - data, err := types.ModuleCdc.MarshalInterfaceJSON(&packetData) - suite.Require().NoError(err) - - var callbackPacketData exported.CallbackPacketData - err = suite.chainA.App.AppCodec().UnmarshalInterfaceJSON(data, &callbackPacketData) - suite.Require().NoError(err, "failed to unmarshal into callback packet data interface") - - suite.Require().Equal(sourceCallbackAddress, callbackPacketData.GetSourceCallbackAddress()) - suite.Require().Equal("", callbackPacketData.GetDestCallbackAddress()) - suite.Require().Equal(uint64(0), callbackPacketData.UserDefinedGasLimit()) -} - // mockSdkMsg defines a mock struct, used for testing codec error scenarios type mockSdkMsg struct{} diff --git a/modules/apps/transfer/types/codec.go b/modules/apps/transfer/types/codec.go index 53021b817a8..288ecb2fc8c 100644 --- a/modules/apps/transfer/types/codec.go +++ b/modules/apps/transfer/types/codec.go @@ -30,11 +30,6 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { &TransferAuthorization{}, ) - registry.RegisterImplementations( - (*exported.CallbackPacketData)(nil), - &FungibleTokenPacketData{}, - ) - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/modules/core/exported/codec.go b/modules/core/exported/codec.go deleted file mode 100644 index 832442ba33f..00000000000 --- a/modules/core/exported/codec.go +++ /dev/null @@ -1,13 +0,0 @@ -package exported - -import ( - codectypes "github.com/cosmos/cosmos-sdk/codec/types" -) - -// RegisterInterfaces registers the CallbackPacketDataI interface. -func RegisterInterfaces(registry codectypes.InterfaceRegistry) { - registry.RegisterInterface( - "ibc.core.exported.v1.CallbackPacketData", - (*CallbackPacketData)(nil), - ) -}