aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/gen_tx_json.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-03-27 17:52:39 +0800
committerFelix Lange <fjl@twurst.com>2017-03-27 19:29:01 +0800
commitaa9a78e4639e8594849be3fa0f92d7f91f67d528 (patch)
treed1e84875024142fb9535c27cf6aa168c042f279a /core/types/gen_tx_json.go
parent7419d0c38291236ecc4e54b1a905d5cbcbe065a4 (diff)
downloadgo-tangerine-aa9a78e4639e8594849be3fa0f92d7f91f67d528.tar
go-tangerine-aa9a78e4639e8594849be3fa0f92d7f91f67d528.tar.gz
go-tangerine-aa9a78e4639e8594849be3fa0f92d7f91f67d528.tar.bz2
go-tangerine-aa9a78e4639e8594849be3fa0f92d7f91f67d528.tar.lz
go-tangerine-aa9a78e4639e8594849be3fa0f92d7f91f67d528.tar.xz
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_tx_json.go')
-rw-r--r--core/types/gen_tx_json.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/types/gen_tx_json.go b/core/types/gen_tx_json.go
index 8bbe629d7..0adcc59b5 100644
--- a/core/types/gen_tx_json.go
+++ b/core/types/gen_tx_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,9 +11,9 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
)
-func (t *txdata) MarshalJSON() ([]byte, error) {
+func (t txdata) MarshalJSON() ([]byte, error) {
type txdataJSON struct {
- AccountNonce *hexutil.Uint64 `json:"nonce"`
+ AccountNonce hexutil.Uint64 `json:"nonce"`
Price *hexutil.Big `json:"gasPrice"`
GasLimit *hexutil.Big `json:"gasLimit"`
Recipient *common.Address `json:"to" optional:"yes" rlp:"nil"`
@@ -25,7 +25,7 @@ func (t *txdata) MarshalJSON() ([]byte, error) {
Hash *common.Hash `json:"hash" optional:"yes" rlp:"-"`
}
var enc txdataJSON
- enc.AccountNonce = (*hexutil.Uint64)(&t.AccountNonce)
+ enc.AccountNonce = hexutil.Uint64(t.AccountNonce)
enc.Price = (*hexutil.Big)(t.Price)
enc.GasLimit = (*hexutil.Big)(t.GasLimit)
enc.Recipient = t.Recipient