mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: add typed receipt for Receipt (#13140)
This commit is contained in:
@ -4,7 +4,7 @@ use reth_primitives_traits::InMemorySize;
|
||||
|
||||
use alloy_consensus::{
|
||||
constants::{EIP1559_TX_TYPE_ID, EIP2930_TX_TYPE_ID, EIP4844_TX_TYPE_ID, EIP7702_TX_TYPE_ID},
|
||||
Eip658Value, TxReceipt,
|
||||
Eip658Value, TxReceipt, Typed2718,
|
||||
};
|
||||
use alloy_eips::eip2718::Encodable2718;
|
||||
use alloy_primitives::{Bloom, Log, B256};
|
||||
@ -96,12 +96,14 @@ impl TxReceipt for Receipt {
|
||||
}
|
||||
}
|
||||
|
||||
impl reth_primitives_traits::Receipt for Receipt {
|
||||
fn tx_type(&self) -> u8 {
|
||||
impl Typed2718 for Receipt {
|
||||
fn ty(&self) -> u8 {
|
||||
self.tx_type as u8
|
||||
}
|
||||
}
|
||||
|
||||
impl reth_primitives_traits::Receipt for Receipt {}
|
||||
|
||||
impl ReceiptExt for Receipt {
|
||||
fn receipts_root(_receipts: &[&Self]) -> B256 {
|
||||
#[cfg(feature = "optimism")]
|
||||
|
||||
Reference in New Issue
Block a user