From 36ff50845e90a808290f017557a72b9587e99963 Mon Sep 17 00:00:00 2001 From: Jaynti Kanani Date: Wed, 1 Jan 2020 17:12:34 +0530 Subject: [PATCH] use hex encoding for record bytes --- consensus/bor/clerk.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consensus/bor/clerk.go b/consensus/bor/clerk.go index 755b695839..b97148e0ca 100644 --- a/consensus/bor/clerk.go +++ b/consensus/bor/clerk.go @@ -2,13 +2,14 @@ package bor import ( "github.com/maticnetwork/bor/common" + "github.com/maticnetwork/bor/common/hexutil" ) // EventRecord represents state record type EventRecord struct { ID uint64 `json:"id" yaml:"id"` Contract common.Address `json:"contract" yaml:"contract"` - Data []byte `json:"data" yaml:"data"` + Data hexutil.Bytes `json:"data" yaml:"data"` TxHash common.Hash `json:"tx_hash" yaml:"tx_hash"` LogIndex uint64 `json:"log_index" yaml:"log_index"` }