aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/gen_log_json.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/types/gen_log_json.go')
-rw-r--r--core/types/gen_log_json.go36
1 files changed, 18 insertions, 18 deletions
diff --git a/core/types/gen_log_json.go b/core/types/gen_log_json.go
index ef2cdfd89..5c8032953 100644
--- a/core/types/gen_log_json.go
+++ b/core/types/gen_log_json.go
@@ -1,4 +1,4 @@
-// generated by github.com/fjl/gencodec, do not edit.
+// Code generated by github.com/fjl/gencodec. DO NOT EDIT.
package types
@@ -10,28 +10,28 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
)
-func (l *Log) MarshalJSON() ([]byte, error) {
+func (l Log) MarshalJSON() ([]byte, error) {
type LogJSON struct {
- Address *common.Address `json:"address"`
- Topics []common.Hash `json:"topics"`
- Data hexutil.Bytes `json:"data"`
- BlockNumber *hexutil.Uint64 `json:"blockNumber" optional:"yes"`
- TxHash *common.Hash `json:"transactionHash"`
- TxIndex *hexutil.Uint `json:"transactionIndex"`
- BlockHash *common.Hash `json:"blockHash" optional:"yes"`
- Index *hexutil.Uint `json:"logIndex"`
- Removed *bool `json:"removed" optional:"yes"`
+ Address common.Address `json:"address"`
+ Topics []common.Hash `json:"topics"`
+ Data hexutil.Bytes `json:"data"`
+ BlockNumber hexutil.Uint64 `json:"blockNumber" optional:"yes"`
+ TxHash common.Hash `json:"transactionHash"`
+ TxIndex hexutil.Uint `json:"transactionIndex"`
+ BlockHash common.Hash `json:"blockHash" optional:"yes"`
+ Index hexutil.Uint `json:"logIndex"`
+ Removed bool `json:"removed" optional:"yes"`
}
var enc LogJSON
- enc.Address = &l.Address
+ enc.Address = l.Address
enc.Topics = l.Topics
enc.Data = l.Data
- enc.BlockNumber = (*hexutil.Uint64)(&l.BlockNumber)
- enc.TxHash = &l.TxHash
- enc.TxIndex = (*hexutil.Uint)(&l.TxIndex)
- enc.BlockHash = &l.BlockHash
- enc.Index = (*hexutil.Uint)(&l.Index)
- enc.Removed = &l.Removed
+ enc.BlockNumber = hexutil.Uint64(l.BlockNumber)
+ enc.TxHash = l.TxHash
+ enc.TxIndex = hexutil.Uint(l.TxIndex)
+ enc.BlockHash = l.BlockHash
+ enc.Index = hexutil.Uint(l.Index)
+ enc.Removed = l.Removed
return json.Marshal(&enc)
}