Skip to content
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

feat: deseralize other fields on tx receipts #2209

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

OliverNChalk
Copy link
Contributor

Motivation

Similar to Transaction and Block, L2s (particularly Optimism) have custom fields on TransactionReceipt. These fields may be necessary in determining the gas cost of a transaction.

Solution

Simply added other: OtherFields to TransactionReceipt, same as existing usage on Transaction. I've also confirmed this works on Optimism's custom params.

Please let me know if there was a reason this type was skipped in the initial roll out of OtherFields

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - good to see you again^^

@gakonst gakonst merged commit 3477517 into gakonst:master Mar 1, 2023
@OliverNChalk OliverNChalk deleted the feat/enable-receipt-other branch March 1, 2023 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants