Skip to content

Commit

Permalink
add bitflag avldiation for HeaderExt
Browse files Browse the repository at this point in the history
  • Loading branch information
joshieDo committed Sep 25, 2024
1 parent 9def147 commit 94cf6ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/storage/codecs/src/alloy/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub(crate) struct Header {
/// All new fields should be added here in the form of a s`Option<T>`, since [`HeaderExt`] itself is
/// a field of [`Header`] as `Option<HeaderExt`.
#[derive(Debug, Clone, PartialEq, Eq, Hash, Default, Serialize, Deserialize, Compact)]
struct HeaderExt {
pub(crate) struct HeaderExt {
requests_root: Option<B256>,
}

Expand Down
3 changes: 2 additions & 1 deletion crates/storage/codecs/src/alloy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod tests {
alloy::{
authorization_list::Authorization,
genesis_account::{GenesisAccount, GenesisAccountRef, StorageEntries, StorageEntry},
header::Header,
header::{Header, HeaderExt},
transaction::{
eip1559::TxEip1559, eip2930::TxEip2930, eip4844::TxEip4844, eip7702::TxEip7702,
legacy::TxLegacy,
Expand All @@ -33,6 +33,7 @@ mod tests {
// [`validate_bitflag_backwards_compat`] macro for detailed instructions on handling
// it.
validate_bitflag_backwards_compat!(Header, UnusedBits::Zero);
validate_bitflag_backwards_compat!(HeaderExt, UnusedBits::NotZero);
validate_bitflag_backwards_compat!(TxEip2930, UnusedBits::Zero);
validate_bitflag_backwards_compat!(StorageEntries, UnusedBits::Zero);
validate_bitflag_backwards_compat!(StorageEntry, UnusedBits::Zero);
Expand Down

0 comments on commit 94cf6ba

Please sign in to comment.