Skip to content

Commit

Permalink
encoded tx hash to hex format due to serializing issues in proto.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristure committed Dec 20, 2024
1 parent a1f3c1d commit 85c0a0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion state/stateChanges/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package stateChanges

import (
"bytes"
"encoding/hex"
"encoding/json"
"fmt"
"sync"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 85c0a0d

Please sign in to comment.