mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-28 00:28:20 -05:00
feat(OpReceipt): add into_receipt (#16156)
This commit is contained in:
@@ -61,6 +61,17 @@ impl OpReceipt {
|
||||
}
|
||||
}
|
||||
|
||||
/// Consumes this and returns the inner [`Receipt`].
|
||||
pub fn into_receipt(self) -> Receipt {
|
||||
match self {
|
||||
Self::Legacy(receipt) |
|
||||
Self::Eip2930(receipt) |
|
||||
Self::Eip1559(receipt) |
|
||||
Self::Eip7702(receipt) => receipt,
|
||||
Self::Deposit(receipt) => receipt.inner,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns length of RLP-encoded receipt fields with the given [`Bloom`] without an RLP header.
|
||||
pub fn rlp_encoded_fields_length(&self, bloom: &Bloom) -> usize {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user