Skip to main content

read_map_with

Function read_map_with 

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

Read a Map<K, V> ledger field at index with custom key/value projectors.