diff options
author | Felix Lange <fjl@twurst.com> | 2017-03-27 17:52:39 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-03-27 19:29:01 +0800 |
commit | aa9a78e4639e8594849be3fa0f92d7f91f67d528 (patch) | |
tree | d1e84875024142fb9535c27cf6aa168c042f279a /core/types/gen_receipt_json.go | |
parent | 7419d0c38291236ecc4e54b1a905d5cbcbe065a4 (diff) | |
download | go-tangerine-aa9a78e4639e8594849be3fa0f92d7f91f67d528.tar.gz go-tangerine-aa9a78e4639e8594849be3fa0f92d7f91f67d528.tar.zst go-tangerine-aa9a78e4639e8594849be3fa0f92d7f91f67d528.zip |
core, core/types: use non-pointer receiver for Marshal* methods
Regenerated with fjl/gencodec@1a75a2161009
Also add ,omitempty to optional GenesisAccount fields.
Diffstat (limited to 'core/types/gen_receipt_json.go')
-rw-r--r-- | core/types/gen_receipt_json.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/core/types/gen_receipt_json.go b/core/types/gen_receipt_json.go index b9e9bee26..6583a8ec0 100644 --- a/core/types/gen_receipt_json.go +++ b/core/types/gen_receipt_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 @@ -11,23 +11,23 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ) -func (r *Receipt) MarshalJSON() ([]byte, error) { +func (r Receipt) MarshalJSON() ([]byte, error) { type ReceiptJSON struct { - PostState hexutil.Bytes `json:"root"` - CumulativeGasUsed *hexutil.Big `json:"cumulativeGasUsed"` - Bloom *Bloom `json:"logsBloom"` - Logs []*Log `json:"logs"` - TxHash *common.Hash `json:"transactionHash"` - ContractAddress *common.Address `json:"contractAddress" optional:"true"` - GasUsed *hexutil.Big `json:"gasUsed"` + PostState hexutil.Bytes `json:"root"` + CumulativeGasUsed *hexutil.Big `json:"cumulativeGasUsed"` + Bloom Bloom `json:"logsBloom"` + Logs []*Log `json:"logs"` + TxHash common.Hash `json:"transactionHash"` + ContractAddress common.Address `json:"contractAddress" optional:"true"` + GasUsed *hexutil.Big `json:"gasUsed"` } var enc ReceiptJSON enc.PostState = r.PostState enc.CumulativeGasUsed = (*hexutil.Big)(r.CumulativeGasUsed) - enc.Bloom = &r.Bloom + enc.Bloom = r.Bloom enc.Logs = r.Logs - enc.TxHash = &r.TxHash - enc.ContractAddress = &r.ContractAddress + enc.TxHash = r.TxHash + enc.ContractAddress = r.ContractAddress enc.GasUsed = (*hexutil.Big)(r.GasUsed) return json.Marshal(&enc) } |