Skip to content

feat: add bincode compat for receipt envelope #2246

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

Merged
merged 4 commits into from
Mar 25, 2025

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Mar 25, 2025

closes #2242

one more bincode helper type -.-

@mattsse mattsse changed the title Matt/add bincode to receipt feat: add bincode compat for receipt envelope Mar 25, 2025
@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Mar 25, 2025
@mattsse mattsse merged commit 3dd8e9e into main Mar 25, 2025
27 checks passed
@mattsse mattsse deleted the matt/add-bincode-to-receipt branch March 25, 2025 15:26
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Mar 25, 2025
@Philogy
Copy link
Contributor

Philogy commented Mar 25, 2025

@mattsse curious what the philosophy is behind making a new compatible type vs. just making the original type compatible?

Also thanks for the fast turn-around!

@mattsse
Copy link
Member Author

mattsse commented Mar 25, 2025

just making the original type compatible?

this does not work if we want this type to also be embedded in the rpc types which may require things like flatten

rkrasiuk pushed a commit that referenced this pull request Mar 31, 2025
* fix: use unwrap_or_else for subscribe

* feat: add bincode to receipt

* feat: receipt envelope bincode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug] ReceiptEnvelope not bincode serializable because of use of serde(flatten) in Receipt
3 participants