From 4a06521ae12edd6839ccb41e7f5926f585eebf2e Mon Sep 17 00:00:00 2001 From: Mateusz Sekara Date: Tue, 26 Sep 2023 15:11:16 +0200 Subject: [PATCH] Log merkleRoot in a human readable form (#166) --- core/services/ocr2/plugins/ccip/commit_reporting_plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/services/ocr2/plugins/ccip/commit_reporting_plugin.go b/core/services/ocr2/plugins/ccip/commit_reporting_plugin.go index 7e6349bf93..fd68641bb5 100644 --- a/core/services/ocr2/plugins/ccip/commit_reporting_plugin.go +++ b/core/services/ocr2/plugins/ccip/commit_reporting_plugin.go @@ -3,6 +3,7 @@ package ccip import ( "bytes" "context" + "encoding/hex" "fmt" "math/big" "sort" @@ -496,7 +497,7 @@ func (r *CommitReportingPlugin) Report(ctx context.Context, epochAndRound types. return false, nil, err } lggr.Infow("Report", - "merkleRoot", report.MerkleRoot, + "merkleRoot", hex.EncodeToString(report.MerkleRoot[:]), "minSeqNr", report.Interval.Min, "maxSeqNr", report.Interval.Max, "tokenPriceUpdates", report.PriceUpdates.TokenPriceUpdates,