aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/gen_tx_json.go
diff options
context:
space:
mode:
authorbas-vk <bas-vk@users.noreply.github.com>2017-03-29 17:59:13 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-03-29 17:59:13 +0800
commitbaf20010e72e31a34e0e2f7c58ccb8135e388b83 (patch)
tree54b42fc25af3ce6774c3d514b4cc6ccf33dc7e75 /core/types/gen_tx_json.go
parent16afb5c468856d9d047de2c770e008a55d593ffc (diff)
downloadgo-tangerine-baf20010e72e31a34e0e2f7c58ccb8135e388b83.tar
go-tangerine-baf20010e72e31a34e0e2f7c58ccb8135e388b83.tar.gz
go-tangerine-baf20010e72e31a34e0e2f7c58ccb8135e388b83.tar.bz2
go-tangerine-baf20010e72e31a34e0e2f7c58ccb8135e388b83.tar.lz
go-tangerine-baf20010e72e31a34e0e2f7c58ccb8135e388b83.tar.xz
go-tangerine-baf20010e72e31a34e0e2f7c58ccb8135e388b83.tar.zst
go-tangerine-baf20010e72e31a34e0e2f7c58ccb8135e388b83.zip
core/types: rename txdata.gasLimit -> txdata.gas in JSON (#13848)
Diffstat (limited to 'core/types/gen_tx_json.go')
-rw-r--r--core/types/gen_tx_json.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/types/gen_tx_json.go b/core/types/gen_tx_json.go
index 0adcc59b5..6101b9637 100644
--- a/core/types/gen_tx_json.go
+++ b/core/types/gen_tx_json.go
@@ -15,7 +15,7 @@ func (t txdata) MarshalJSON() ([]byte, error) {
type txdataJSON struct {
AccountNonce hexutil.Uint64 `json:"nonce"`
Price *hexutil.Big `json:"gasPrice"`
- GasLimit *hexutil.Big `json:"gasLimit"`
+ GasLimit *hexutil.Big `json:"gas"`
Recipient *common.Address `json:"to" optional:"yes" rlp:"nil"`
Amount *hexutil.Big `json:"value"`
Payload hexutil.Bytes `json:"input"`
@@ -42,7 +42,7 @@ func (t *txdata) UnmarshalJSON(input []byte) error {
type txdataJSON struct {
AccountNonce *hexutil.Uint64 `json:"nonce"`
Price *hexutil.Big `json:"gasPrice"`
- GasLimit *hexutil.Big `json:"gasLimit"`
+ GasLimit *hexutil.Big `json:"gas"`
Recipient *common.Address `json:"to" optional:"yes" rlp:"nil"`
Amount *hexutil.Big `json:"value"`
Payload hexutil.Bytes `json:"input"`
@@ -65,7 +65,7 @@ func (t *txdata) UnmarshalJSON(input []byte) error {
}
x.Price = (*big.Int)(dec.Price)
if dec.GasLimit == nil {
- return errors.New("missing required field 'gasLimit' for txdata")
+ return errors.New("missing required field 'gas' for txdata")
}
x.GasLimit = (*big.Int)(dec.GasLimit)
if dec.Recipient != nil {