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:
@ -3,7 +3,7 @@
|
||||
use alloc::vec::Vec;
|
||||
use core::fmt;
|
||||
|
||||
use alloy_consensus::TxReceipt;
|
||||
use alloy_consensus::{TxReceipt, Typed2718};
|
||||
use alloy_primitives::B256;
|
||||
|
||||
use crate::{InMemorySize, MaybeArbitrary, MaybeCompact, MaybeSerde};
|
||||
@ -25,12 +25,11 @@ pub trait Receipt:
|
||||
+ TxReceipt<Log = alloy_primitives::Log>
|
||||
+ alloy_rlp::Encodable
|
||||
+ alloy_rlp::Decodable
|
||||
+ Typed2718
|
||||
+ MaybeSerde
|
||||
+ InMemorySize
|
||||
+ MaybeArbitrary
|
||||
{
|
||||
/// Returns transaction type.
|
||||
fn tx_type(&self) -> u8;
|
||||
}
|
||||
|
||||
/// Extension if [`Receipt`] used in block execution.
|
||||
|
||||
Reference in New Issue
Block a user