ethereum-optimism / op-geth

GNU Lesser General Public License v3.0
255 stars 653 forks source link

Add Ecotone Fee Information to JSON Receipts #278

Closed trianglesphere closed 2 months ago

trianglesphere commented 2 months ago

Description

This commit adds the following fields the receipt:

The new fields are only present after Ecotone. The field feeScalar which is pre-ecotone is set to null now for receipts that occurred after Ecotone's activation.

I also refactored extractL1GasParams to return a struct rather than a list of value due to the large number of returned fields.

Tests

I modified the post-ecotone unit tests to check for these fields.

Metadata