Skip to content

Commit

Permalink
fix: failed to marshal JSON for types.Any (#403)
Browse files Browse the repository at this point in the history
The logger was trying to marshal `MsgAddEvidence` messages as JSON, but
failing on the `Any` fields in it, as it does not have access to the
unpacker interfaces registry.
  • Loading branch information
maharifu committed Jun 17, 2024
1 parent 3e263f1 commit 030f9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/paloma/wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (m *PalomaMessageSender) SendMsg(ctx context.Context, msg sdk.Msg, memo str
return nil, fmt.Errorf("failed to inject metadata: %w", err)
}

logger.WithField("msg", msg).Debug("Sending message...")
logger.WithField("msg", msg.String()).Debug("Sending message...")
res, err := m.W.SendMsg(ctx, msg, memo, opts...)
if IsPalomaDown(err) {
return nil, whoops.Wrap(ErrPalomaIsDown, err)
Expand Down

0 comments on commit 030f9e6

Please sign in to comment.