Skip to content

Commit

Permalink
Merge pull request #236 from ralexstokes/fix-auction-context
Browse files Browse the repository at this point in the history
misc clean ups
  • Loading branch information
ralexstokes authored May 3, 2024
2 parents fb76b2a + c037d23 commit 779a632
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion mev-build-rs/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use crate::{
},
};
use ethereum_consensus::{
clock::SystemClock, deneb::Slot, networks::Network, primitives::Epoch,
clock::SystemClock,
networks::Network,
primitives::{Epoch, Slot},
state_transition::Context,
};
use eyre::OptionExt;
Expand Down
7 changes: 2 additions & 5 deletions mev-build-rs/src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
pub mod compat {
use ethereum_consensus::{
deneb::{
polynomial_commitments::{KzgCommitment, KzgProof},
Blob,
},
deneb::polynomial_commitments::{KzgCommitment, KzgProof},
primitives::{Bytes32, ExecutionAddress},
ssz::prelude::{ByteList, ByteVector, List, U256},
};
Expand Down Expand Up @@ -87,7 +84,7 @@ pub mod compat {
proofs.push(proof);
}
for blob in &sidecar.blobs {
let blob = Blob::try_from(blob.as_ref()).unwrap();
let blob = spec::Blob::try_from(blob.as_ref()).unwrap();
blobs.push(blob);
}
}
Expand Down
2 changes: 1 addition & 1 deletion mev-relay-rs/src/auction_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl AuctionContext {
execution_payload,
value,
}),
SignedBidSubmission::Capella(_) => Self::Capella(bellatrix::AuctionContext {
SignedBidSubmission::Capella(_) => Self::Capella(capella::AuctionContext {
builder_public_key,
signed_builder_bid,
execution_payload,
Expand Down
1 change: 1 addition & 0 deletions mev-rs/src/types/builder_bid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub mod deneb {
use super::{KzgCommitment, MAX_BLOB_COMMITMENTS_PER_BLOCK};
use crate::types::ExecutionPayloadHeader;
use ethereum_consensus::{primitives::BlsPublicKey, ssz::prelude::*};

#[derive(Debug, Clone, Serializable, HashTreeRoot, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct BuilderBid {
Expand Down

0 comments on commit 779a632

Please sign in to comment.