-
Notifications
You must be signed in to change notification settings - Fork 20.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core/types: add data gas fields in Receipt #27743
Conversation
@@ -63,6 +63,8 @@ type Receipt struct { | |||
ContractAddress common.Address `json:"contractAddress"` | |||
GasUsed uint64 `json:"gasUsed" gencodec:"required"` | |||
EffectiveGasPrice *big.Int `json:"effectiveGasPrice"` // required, but tag omitted for backwards compatibility | |||
DataGasUsed uint64 `json:"dataGasUsed,omitempty"` | |||
DataGasPrice *big.Int `json:"dataGasPrice,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karalabe says this should be called BlobGasUsed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except the field name, lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM, I'll fix all the names in a followup PR
* core/types: add data gas fields in Receipt * core/types: use BlobGas method of tx * core: fix test * core/types: fix receipt tests, add data gas used field test --------- Co-authored-by: Péter Szilágyi <peterke@gmail.com>
…)" This reverts commit 4121121.
…)" This reverts commit 4121121.
This pulls in receipt changes from the 4844-devnet-7 branch.