Skip to content

Commit

Permalink
Merge pull request #183 from ralexstokes/serde-fix
Browse files Browse the repository at this point in the history
use correct serialization for `U256`
  • Loading branch information
ralexstokes authored Nov 9, 2023
2 parents accae47 + 578541e commit 63bb95c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mev-rs/src/types/block_submission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub struct BidTrace {
pub gas_limit: u64,
#[serde(with = "crate::serde::as_str")]
pub gas_used: u64,
#[serde(with = "crate::serde::as_str")]
pub value: U256,
}

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 @@ -14,6 +14,7 @@ use std::fmt;
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct BuilderBid {
pub header: ExecutionPayloadHeader,
#[serde(with = "crate::serde::as_str")]
pub value: U256,
#[serde(rename = "pubkey")]
pub public_key: BlsPublicKey,
Expand Down

0 comments on commit 63bb95c

Please sign in to comment.