-
Notifications
You must be signed in to change notification settings - Fork 247
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
[Feature] Receipt trait in alloy-consensus #477
Conversation
@prestwich change status function on rpc receipt type to delegate to Receipt implementation of inner This is not quite possible at the moment; pub enum ReceiptEnvelope<T = Log> ----> This uses Log from and pub struct TransactionReceipt<T = ReceiptEnvelope> ----> This uses Log from |
@@ -43,7 +43,7 @@ where | |||
} | |||
|
|||
impl TxReceipt for Receipt { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
followup work:
- Make this impl generic over
@@ -78,7 +78,7 @@ pub struct ReceiptWithBloom<T = Log> { | |||
} | |||
|
|||
impl TxReceipt for ReceiptWithBloom { | |||
fn success(&self) -> bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
followup work:
- Make this impl generic over
* introduced Receipt trait * fmt * mod: switch to TxReceipt trait * fmt * impl Receipt for ReceiptEnvelope * mod: removed todo() * resovling comments and CI
Motivation
Closes #466
Solution
PR Checklist