From 73a4fd7ac7c83de1c50ffd9b9bc73b14e9cc201f Mon Sep 17 00:00:00 2001 From: Konstantin Munichev Date: Tue, 19 Nov 2024 20:12:36 +0100 Subject: [PATCH] more logs --- x/gmp/module_ibc.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/x/gmp/module_ibc.go b/x/gmp/module_ibc.go index 039904e..e842a8c 100644 --- a/x/gmp/module_ibc.go +++ b/x/gmp/module_ibc.go @@ -17,11 +17,6 @@ import ( "github.com/sagaxyz/ssc/x/gmp/types" ) -type GeneralMessageHandler interface { - HandleGeneralMessage(ctx sdk.Context, srcChain, srcAddress string, payload []byte) error - HandleGeneralMessageWithToken(ctx sdk.Context, srcChain, srcAddress string, payload []byte, receiver string, coin sdk.Coin) error -} - // Message is attached in ICS20 packet memo field type Message struct { SourceChain string `json:"source_chain"` @@ -184,6 +179,7 @@ func (im IBCModule) OnRecvPacket( ) ibcexported.Acknowledgement { // this line is used by starport scaffolding # oracle/packet/module/recv + ctx.Logger().Info(fmt.Sprintf("OnRecvPacket in gmp: %v", modulePacket)) var data transfertypes.FungibleTokenPacketData var err error if err := types.ModuleCdc.UnmarshalJSON(modulePacket.GetData(), &data); err != nil { @@ -198,6 +194,7 @@ func (im IBCModule) OnRecvPacket( } if msg.Payload == nil { + ctx.Logger().Debug(fmt.Sprintf("empty msg.Payload: %v", msg)) return im.app.OnRecvPacket(ctx, modulePacket, relayer) }