foundry_common::serde_helpers

Function deserialize_number_opt

Source
pub fn deserialize_number_opt<'de, D>(
    deserializer: D,
) -> Result<Option<U256>, D::Error>
where D: Deserializer<'de>,
Expand description

Deserializes a number from hex or int, but optionally