Skip to content

Commit

Permalink
fix npe in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
keefertaylor committed Dec 30, 2024
1 parent dd0254d commit 95e791b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/tx/tx_broadcaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (b *Broadcaster) SignAndBroadcast(ctx context.Context, msgs []sdk.Msg) (txH

// Attempt to sign and broadcast
broadcastResult, broadcastErr := b.wrapped.signAndBroadcast(ctx, msgs)
logger := b.logger.With("tx_hash", txHash, "error", broadcastErr.Error(), "broadcast_result", broadcastResult.String())
logger := b.logger.With("tx_hash", txHash, "error", broadcastErr, "broadcast_result", broadcastResult.String())

logger.Debug("broadcaster::received from signAndBroadcast")
if broadcastErr != nil {
Expand Down

0 comments on commit 95e791b

Please sign in to comment.