mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: Simplify traits
This commit is contained in:
@ -13,7 +13,7 @@ use revm::{
|
||||
#[auto_impl(&, &mut, Box, Arc)]
|
||||
pub trait HlTxTr: Transaction {}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct HlTxEnv<T: Transaction> {
|
||||
pub base: T,
|
||||
@ -25,12 +25,6 @@ impl<T: Transaction> HlTxEnv<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for HlTxEnv<TxEnv> {
|
||||
fn default() -> Self {
|
||||
Self { base: TxEnv::default() }
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Transaction> Transaction for HlTxEnv<T> {
|
||||
type AccessListItem<'a>
|
||||
= T::AccessListItem<'a>
|
||||
|
||||
Reference in New Issue
Block a user