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

fix receipt json marshaling/unmarshaling #167

Merged

Conversation

roberto-bayardo
Copy link
Contributor

@roberto-bayardo roberto-bayardo commented Oct 25, 2023

Description

Make JSON marshaling/unmarshaling of receipts handle deposit nonce & new deposit receipt version.

"go generate" was used to regenerate gen_receipt_json.go which appeared to have been manually edited before.

Tests

modified receipt json marshal/unmarshal test to confirm receipt root computation is not affected by json encoding

Additional context

Looks like deposit nonce never was included in the json serialization of a deposit transaction, but since the value wasn't previously being used in receipt hash generation (due to a different bug) this wasn't ever detected.

Metadata

  • Fixes #[Link to Issue]

@roberto-bayardo roberto-bayardo force-pushed the fix-receipt-json branch 2 times, most recently from b6880dc to 5177cb8 Compare October 25, 2023 19:58
@roberto-bayardo roberto-bayardo marked this pull request as ready for review October 25, 2023 20:06
Signed-off-by: Roberto Bayardo <roberto.bayardo@coinbase.com>
Copy link
Contributor

@trianglesphere trianglesphere left a comment

Choose a reason for hiding this comment

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

TYVM for tracking this down

@trianglesphere trianglesphere merged commit e8f25a6 into ethereum-optimism:optimism Oct 26, 2023
3 of 4 checks passed
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.

2 participants