neo-devpack-solidity 0.22.0

Production-focused Solidity-to-NeoVM compilation system
Documentation
1
2
3
4
5
6
7
8
9
fn build_parameter_index_map(metadata: &FunctionMetadata) -> HashMap<String, usize> {
    let mut map = HashMap::new();
    for (index, param) in metadata.parameters.iter().enumerate() {
        if let Some(name) = &param.name {
            map.insert(name.clone(), index);
        }
    }
    map
}