From 85c0a0dee5c7dff58470f2fdd5ea170137e3c319 Mon Sep 17 00:00:00 2001 From: Alexander Cristurean Date: Fri, 20 Dec 2024 14:09:29 +0200 Subject: [PATCH] encoded tx hash to hex format due to serializing issues in proto. --- state/stateChanges/collector.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/state/stateChanges/collector.go b/state/stateChanges/collector.go index 58562fd7d9f..5c4c7e7ab43 100644 --- a/state/stateChanges/collector.go +++ b/state/stateChanges/collector.go @@ -2,6 +2,7 @@ package stateChanges import ( "bytes" + "encoding/hex" "encoding/json" "fmt" "sync" @@ -100,7 +101,7 @@ func (c *collector) Publish() (map[string]*data.StateChanges, error) { stateChangesForTxs := make(map[string]*data.StateChanges) for _, stateChange := range c.stateChanges { - txHash := string(stateChange.GetTxHash()) + txHash := hex.EncodeToString(stateChange.GetTxHash()) st, ok := stateChange.(*data.StateChange) if !ok {