Skip to content

Commit

Permalink
hoist BlobsBundle type out of specific fork
Browse files Browse the repository at this point in the history
this works until the type changes in a future fork, although it may not change
  • Loading branch information
ralexstokes committed May 14, 2024
1 parent fd31a09 commit 908d9f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mev-rs/src/types/auction_contents.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::types::ExecutionPayload;
pub use deneb::BlobsBundle;
use ethereum_consensus::Fork;

pub mod bellatrix {
Expand Down Expand Up @@ -94,7 +95,7 @@ impl AuctionContents {
}
}

pub fn blobs_bundle(&self) -> Option<&deneb::BlobsBundle> {
pub fn blobs_bundle(&self) -> Option<&BlobsBundle> {
match self {
Self::Deneb(inner) => Some(&inner.blobs_bundle),
Self::Electra(inner) => Some(&inner.blobs_bundle),
Expand Down
2 changes: 1 addition & 1 deletion mev-rs/src/types/block_submission.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::types::{auction_contents::deneb::BlobsBundle, ExecutionPayload};
use crate::types::{auction_contents::BlobsBundle, ExecutionPayload};
use ethereum_consensus::{
primitives::{BlsPublicKey, BlsSignature, ExecutionAddress, Hash32, Slot},
ssz::prelude::*,
Expand Down

0 comments on commit 908d9f8

Please sign in to comment.