foundry_cli::utils

Function parse_ether_value

Source
pub fn parse_ether_value(value: &str) -> Result<U256>
Expand description

Parses an ether value from a string.

The amount can be tagged with a unit, e.g. “1ether”.

If the string represents an untagged amount (e.g. “100”) then it is interpreted as wei.