use hex encoding for record bytes

This commit is contained in:
Jaynti Kanani 2020-01-01 17:12:34 +05:30
parent bd9cd503a1
commit 36ff50845e
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E

View file

@ -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"`
}