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!: make encoding/decoding RLP lists non-ambiguous by returning empty List instead of null #65

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

ArtificialPB
Copy link
Member

Description

Make encoding/decoding RLP lists non-ambiguous by returning empty List instead of null.

Addtionally:

  • fixed chainId field decoding on RPCTransaction if the json field was NULL
  • make Transaction#accessList not null and default to empty List if not set. Previously, missing access list could be set either as null or as empty list, leading to ambiguous and broken comparison checks

Solution

…ty List instead of null

Addtionally:
- fixed chainId field decoding on RPCTransaction if the json field was NULL
- make Transaction#accessList not null and default to empty List if not set. Previously, missing access list could be set either as null or as empty list, leading to ambiguous and broken comparison checks
@ArtificialPB
Copy link
Member Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@ArtificialPB ArtificialPB merged commit fbd0c0f into master Jan 29, 2024
1 check passed
@ArtificialPB ArtificialPB deleted the fix/ambiguous-rlp-list branch January 29, 2024 18:14
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.

1 participant