Skip to content

Commit

Permalink
even more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
luckychess committed Nov 19, 2024
1 parent 6ea4835 commit a285044
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/gmp/module_ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@ func (im IBCModule) OnRecvPacket(
ctx.Logger().Info(fmt.Sprintf("Got general message with token: %v", msg))
payloadType, err := abi.NewType("string", "string", nil)
if err != nil {
ctx.Logger().Info(fmt.Sprintf("failed to create reflection: %s", err.Error()))
return channeltypes.NewErrorAcknowledgement(cosmossdkerrors.Wrapf(transfertypes.ErrInvalidMemo, "unable to define new abi type (%s)", err.Error()))
}

args, err := abi.Arguments{{Type: payloadType}}.Unpack(msg.Payload)
if err != nil {
ctx.Logger().Info(fmt.Sprintf("failed to unpack: %s", err.Error()))
return channeltypes.NewErrorAcknowledgement(cosmossdkerrors.Wrapf(transfertypes.ErrInvalidMemo, "unable to unpack payload (%s)", err.Error()))
}
pfmPayload := args[0].(string)
Expand Down

0 comments on commit a285044

Please sign in to comment.