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

Extend EIP 4844 transaction toJson data to include additional fields #3365

Merged
merged 9 commits into from
Apr 24, 2024

Conversation

scorbajio
Copy link
Contributor

@scorbajio scorbajio commented Apr 24, 2024

This change adds a new networkWrapperToJson function that extends the data already returned by the toJson function of the BlobEIP4844Transaction class to also include blobs, commitments, and proofs as hexadecimal strings.

Copy link
Contributor

@acolytec3 acolytec3 left a comment

Choose a reason for hiding this comment

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

This looks great! Left a few clarification suggestions but feel free to wordsmith

packages/tx/test/eip4844.spec.ts Outdated Show resolved Hide resolved
packages/tx/src/types.ts Outdated Show resolved Hide resolved
packages/tx/src/eip4844Transaction.ts Outdated Show resolved Hide resolved
packages/tx/src/eip4844Transaction.ts Outdated Show resolved Hide resolved
scorbajio and others added 5 commits April 23, 2024 19:02
Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>
Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>
Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>
Copy link
Contributor

@acolytec3 acolytec3 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
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

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

lgtm

@acolytec3 acolytec3 merged commit 3125eac into master Apr 24, 2024
34 checks passed
@scorbajio scorbajio deleted the extend-4844-toJson-data branch April 24, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tx.toJSON doesn't include 4844 related data
3 participants