From 852d524bcab52dc8dd43e28766f151b6764bbe79 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 22 Jun 2024 13:06:37 +0800 Subject: [PATCH] add codec for messages --- x/btcbridge/types/codec.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x/btcbridge/types/codec.go b/x/btcbridge/types/codec.go index c569eb3..8753f2c 100644 --- a/x/btcbridge/types/codec.go +++ b/x/btcbridge/types/codec.go @@ -13,6 +13,8 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgSubmitDepositTransactionRequest{}, "btcbridge/MsgSubmitDepositTransactionRequest", nil) cdc.RegisterConcrete(&MsgSubmitWithdrawSignaturesRequest{}, "btcbridge/MsgSubmitWithdrawSignaturesRequest", nil) cdc.RegisterConcrete(&MsgSubmitWithdrawTransactionRequest{}, "btcbridge/MsgSubmitWithdrawTransactionRequest", nil) + cdc.RegisterConcrete(&MsgWithdrawBitcoinRequest{}, "btcbridge/MsgWithdrawBitcoinRequest", nil) + cdc.RegisterConcrete(&MsgSubmitWithdrawStatusRequest{}, "btcbridge/MsgSubmitWithdrawStatusRequest", nil) // this line is used by starport scaffolding # 2 } @@ -22,6 +24,8 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgSubmitDepositTransactionRequest{}) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgSubmitWithdrawSignaturesRequest{}) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgSubmitWithdrawTransactionRequest{}) + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgWithdrawBitcoinRequest{}) + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgSubmitWithdrawStatusRequest{}) // this line is used by starport scaffolding # 3 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)