Skip to content

Conversation

@maradini77
Copy link
Contributor


This PR simplifies the API of ReceiptEnvelope by changing the return type of the method as_receipt (and similar methods) to directly return a reference, instead of always returning Some inside an Option.

  • All enum variants contain a ReceiptWithBloom<Receipt<T>>, so the methods are infallible.
  • Removes unnecessary .unwrap() usages, improves readability and usage ergonomics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant