Skip to content

Commit

Permalink
impl SimpleSerialize for relay types
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Nov 8, 2023
1 parent 250ff4d commit 07b65f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mev-rs/src/types/block_submission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct BidTrace {
pub value: U256,
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, SimpleSerialize)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct SignedBidSubmission {
pub message: BidTrace,
Expand Down
4 changes: 2 additions & 2 deletions mev-rs/src/types/builder_bid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use ethereum_consensus::{
};
use std::fmt;

#[derive(Debug, Clone, Merkleized)]
#[derive(Debug, Clone, SimpleSerialize)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct BuilderBid {
pub header: ExecutionPayloadHeader,
Expand All @@ -30,7 +30,7 @@ impl BuilderBid {
}
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[derive(Debug, Clone, SimpleSerialize, serde::Serialize, serde::Deserialize)]
pub struct SignedBuilderBid {
pub message: BuilderBid,
pub signature: BlsSignature,
Expand Down

0 comments on commit 07b65f5

Please sign in to comment.