pub fn read_map<K, V, W>(
state: &ContractState<InMemoryDB>,
executable: &IrExecutable<W>,
index: usize,
field: &str,
) -> Result<CompactMap<K, V>, ContractRuntimeError>where
K: Ord + TryFrom<RuntimeValue, Error = ValueProjectionError>,
V: TryFrom<RuntimeValue, Error = ValueProjectionError>,
W: Witnesses,Expand description
Read a Map<K, V> ledger field at index using TryFrom<RuntimeValue>.