Skip to content

Commit 803108e

Browse files
committed
core/types: add DataGasUsed, DataGasPrice to tx receipt
1 parent 374665d commit 803108e

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

core/types/gen_receipt_json.go

Lines changed: 25 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/types/receipt.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ type Receipt struct {
6262
TxHash common.Hash `json:"transactionHash" gencodec:"required"`
6363
ContractAddress common.Address `json:"contractAddress"`
6464
GasUsed uint64 `json:"gasUsed" gencodec:"required"`
65+
DataGasUsed *uint64 `json:"dataGasUsed"`
6566
EffectiveGasPrice *big.Int `json:"effectiveGasPrice"` // required, but tag omitted for backwards compatibility
67+
DataGasPrice *uint64 `json:"dataGasPrice"`
6668

6769
// Inclusion information: These fields provide information about the inclusion of the
6870
// transaction corresponding to this receipt.
@@ -77,7 +79,9 @@ type receiptMarshaling struct {
7779
Status hexutil.Uint64
7880
CumulativeGasUsed hexutil.Uint64
7981
GasUsed hexutil.Uint64
82+
DataGasUsed *hexutil.Uint64
8083
EffectiveGasPrice *hexutil.Big
84+
DataGasPrice *hexutil.Uint64
8185
BlockNumber *hexutil.Big
8286
TransactionIndex hexutil.Uint
8387
}

0 commit comments

Comments
 (0)