diff --git a/core/types/transaction_marshalling.go b/core/types/transaction_marshalling.go index 0c3529c74..d7f43b193 100644 --- a/core/types/transaction_marshalling.go +++ b/core/types/transaction_marshalling.go @@ -63,8 +63,8 @@ type txJSON struct { QueueIndex *hexutil.Uint64 `json:"queueIndex,omitempty"` // Alt fee transaction fields: - FeeTokenID hexutil.Uint16 `json:"fee_token_id"` - FeeLimit *hexutil.Big `json:"fee_limit"` + FeeTokenID hexutil.Uint16 `json:"feeTokenID"` + FeeLimit *hexutil.Big `json:"feeLimit"` } // yParityValue returns the YParity value from JSON. For backwards-compatibility reasons, diff --git a/tests/state_test_util.go b/tests/state_test_util.go index 9eff906ff..75cd62b24 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -113,8 +113,8 @@ type stTransaction struct { Value []string `json:"value"` PrivateKey []byte `json:"secretKey"` - FeeTokenID uint16 `json:"fee_token_id,omitempty"` - FeeLimit *big.Int `json:"fee_limit,omitempty"` + FeeTokenID uint16 `json:"feeTokenID,omitempty"` + FeeLimit *big.Int `json:"feeLimit,omitempty"` } type stTransactionMarshaling struct {