chore: add typed receipt for Receipt (#13140)

This commit is contained in:
Matthias Seitz
2024-12-04 21:20:45 +01:00
committed by GitHub
parent fbd2d6eeda
commit 337272c88b
2 changed files with 7 additions and 6 deletions

View File

@ -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.