Skip to main content

read_map

Function read_map 

Source
pub fn read_map<K, V, W>(
    state: &ContractState<InMemoryDB>,
    executable: &IrExecutable<W>,
    index: usize,
    field: &str,
) -> Result<CompactMap<K, V>, ContractRuntimeError>
Expand description

Read a Map<K, V> ledger field at index using TryFrom<RuntimeValue>.