diff --git a/crates/rpc-types-anvil/src/lib.rs b/crates/rpc-types-anvil/src/lib.rs index 991f783e40e..e1495aee168 100644 --- a/crates/rpc-types-anvil/src/lib.rs +++ b/crates/rpc-types-anvil/src/lib.rs @@ -31,7 +31,7 @@ impl<'de> serde::Deserialize<'de> for Forking { #[serde(rename_all = "camelCase")] struct ForkOpts { json_rpc_url: Option, - #[serde(default, with = "alloy_serde::quantity::opt")] + #[serde(default, with = "alloy_serde::num::u64_opt_via_ruint")] block_number: Option, } @@ -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, /// 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, }, /// 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), }