mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: integrate OpPrimitives (#13556)
This commit is contained in:
@ -23,9 +23,15 @@ pub trait PayloadTransactions {
|
||||
}
|
||||
|
||||
/// [`PayloadTransactions`] implementation that produces nothing.
|
||||
#[derive(Debug, Default, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct NoopPayloadTransactions<T>(core::marker::PhantomData<T>);
|
||||
|
||||
impl<T> Default for NoopPayloadTransactions<T> {
|
||||
fn default() -> Self {
|
||||
Self(Default::default())
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> PayloadTransactions for NoopPayloadTransactions<T> {
|
||||
type Transaction = T;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user