Skip to content

Commit

Permalink
CompactPlaceholder specialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jul 16, 2024
1 parent b318b99 commit bc3187e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/primitives/src/transaction/eip4844.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ use crate::{
};
use alloy_rlp::{length_of_length, Decodable, Encodable, Header};
use core::mem;
#[cfg(any(test, feature = "reth-codec"))]
use reth_codecs::Compact;

/// To be used with `Option<CompactPlaceholder>` to place or replace one bit on the bitflag struct.
pub type CompactPlaceholder = ();

#[cfg(feature = "c-kzg")]
use crate::kzg::KzgSettings;

Expand Down Expand Up @@ -58,7 +60,7 @@ pub struct TxEip4844 {
/// TODO(debt): this should be removed if we break the DB.
/// Makes sure that the Compact bitflag struct has one bit after the above field:
/// <https://github.com/paradigmxyz/reth/pull/8291#issuecomment-2117545016>
pub placeholder: Option<()>,
pub placeholder: Option<CompactPlaceholder>,

/// The 160-bit address of the message call’s recipient.
pub to: Address,
Expand Down

0 comments on commit bc3187e

Please sign in to comment.