-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
chore(sdk): Add adapter type for NodePrimitives::Receipt
#12674
Conversation
crates/primitives-traits/src/node.rs
Outdated
@@ -73,3 +73,6 @@ where | |||
type TxType = T::TxType; | |||
type Receipt = T::Receipt; | |||
} | |||
|
|||
/// Helper adapter type for accessing [`NodePrimitives`] receipt type. | |||
pub type Rcpt<N> = <N as NodePrimitives>::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.
not a fan of abbreviations for aliases.
we will likely need a few more, so I think we should come up with a common prefix for these, perhaps just NodeReceipt
?
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.
I thought we rename it when we don't use reth_primitives::Receipt
in the code base anymore?
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.
ah no the trait is the problem nvm...wanted smthg short...
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.
ReceiptTy
? common suffix?
@@ -73,3 +73,6 @@ where | |||
type TxType = T::TxType; | |||
type Receipt = T::Receipt; | |||
} | |||
|
|||
/// Helper adapter type for accessing [`NodePrimitives`] receipt type. | |||
pub type ReceiptTy<N> = <N as NodePrimitives>::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.
I can live with a common suffix
Ref #12454