Skip to content

Commit

Permalink
mark as untagged, handle block serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnacks committed Jun 18, 2024
1 parent 7d0a098 commit 0f8b8e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/rpc-types-anvil/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ pub struct ForkedNetwork {
/// Additional `evm_mine` options
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[serde(untagged)]
pub enum MineOptions {
/// The options for mining
Options {
Expand All @@ -151,6 +152,7 @@ pub enum MineOptions {
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")]
blocks: Option<u64>,
},
/// The timestamp the block should be mined with
Expand Down

0 comments on commit 0f8b8e5

Please sign in to comment.