Skip to main content

parse_address_const

Function parse_address_const 

Source
pub fn parse_address_const(
    value: &str,
    name: &'static str,
) -> Result<Address, HexConstError>
Expand description

Parses a 0x-prefixed 20-byte address constant, surfacing a clear error if the placeholder marker <paste_ is still present.

ยงErrors

Returns HexConstError::Placeholder if value still contains the <paste_ marker, or HexConstError::InvalidHex if it is not valid 20-byte hex.