Skip to main content

parse_sol_type

Function parse_sol_type 

Source
fn parse_sol_type(label: &str) -> Option<DynSolType>
Expand description

Parses a storage type label into a [DynSolType], returning None for labels that have no direct ABI equivalent (mappings, structs).

Handles contract X types (which are addresses under the hood) and enum X types (which are uint8) that DynSolType::parse doesn’t recognize.