Skip to content

Commit

Permalink
attempt at more compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnacks committed Jun 18, 2024
1 parent 0f8b8e5 commit 767cd22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/rpc-types-anvil/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl<'de> serde::Deserialize<'de> for Forking {
#[serde(rename_all = "camelCase")]
struct ForkOpts {
json_rpc_url: Option<String>,
#[serde(default, with = "alloy_serde::quantity::opt")]
#[serde(default, with = "alloy_serde::num::u64_opt_via_ruint")]
block_number: Option<u64>,
}

Expand Down Expand Up @@ -148,15 +148,15 @@ pub enum MineOptions {
/// The options for mining
Options {
/// The timestamp the block should be mined with
#[serde(with = "alloy_serde::quantity::opt")]
#[serde(with = "alloy_serde::num::u64_opt_via_ruint")]
timestamp: Option<u64>,
/// If `blocks` is given, it will mine exactly blocks number of blocks, regardless of any
/// other blocks mined or reverted during it's operation
#[serde(with = "alloy_serde::quantity::opt")]
#[serde(with = "alloy_serde::num::u64_opt_via_ruint")]
blocks: Option<u64>,
},
/// The timestamp the block should be mined with
#[serde(with = "alloy_serde::quantity::opt")]
#[serde(with = "alloy_serde::num::u64_opt_via_ruint")]
Timestamp(Option<u64>),
}

Expand Down

0 comments on commit 767cd22

Please sign in to comment.