mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-14 16:03:45 +00:00
use hex encoding for record bytes
This commit is contained in:
parent
bd9cd503a1
commit
36ff50845e
1 changed files with 2 additions and 1 deletions
|
|
@ -2,13 +2,14 @@ package bor
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/maticnetwork/bor/common"
|
"github.com/maticnetwork/bor/common"
|
||||||
|
"github.com/maticnetwork/bor/common/hexutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EventRecord represents state record
|
// EventRecord represents state record
|
||||||
type EventRecord struct {
|
type EventRecord struct {
|
||||||
ID uint64 `json:"id" yaml:"id"`
|
ID uint64 `json:"id" yaml:"id"`
|
||||||
Contract common.Address `json:"contract" yaml:"contract"`
|
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"`
|
TxHash common.Hash `json:"tx_hash" yaml:"tx_hash"`
|
||||||
LogIndex uint64 `json:"log_index" yaml:"log_index"`
|
LogIndex uint64 `json:"log_index" yaml:"log_index"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue