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

Add optional tag to ignore fields when nil when rlp encoding/decoding #12

Closed
wants to merge 1 commit into from

Conversation

paologalligit
Copy link
Member

@paologalligit paologalligit commented Dec 12, 2024

This adds support for a new struct tag "optional". Using this tag, structs used for RLP encoding/decoding can be extended in a backwards-compatible way, by adding new fields at the end.

@paologalligit
Copy link
Member Author

Closing this since it's not needed any more (the optional field will be managed in a different way directly in Thor)

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