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: pass slice to RlpReceipt::rlp_decode_fields #1696

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Nov 27, 2024

Motivation

For OP we need to know the length of available payload to correctly handle optional fields on receipt. This PR changes the RlpReceipt trait so that fields decoding method accepts a slice of the same length as specified in header and can use it to determine where to stop decoding

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@klkvr klkvr enabled auto-merge (squash) November 27, 2024 19:00
@klkvr klkvr merged commit 7ba1bff into main Nov 27, 2024
26 checks passed
@klkvr klkvr deleted the klkvr/rlp-receipt-fix branch November 27, 2024 19:06
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