Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
luckychess committed Nov 19, 2024
1 parent 435429e commit 73a4fd7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions x/gmp/module_ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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 {
Expand All @@ -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)
}

Expand Down

0 comments on commit 73a4fd7

Please sign in to comment.