In Aztec.nr, it is currently not possible to specify the type of the key for a map. It is always a Field. An example working around this is the BalancesMap.
To avoid workarounds, we should alter the Map such that it can be used with values that fit into a single field. This could be by providing a closure or the like. It might make the Storage::init a bit more verbose, but it should help on clarity and when using the map later in the code.
In Aztec.nr, it is currently not possible to specify the type of the
keyfor a map. It is always aField. An example working around this is theBalancesMap.To avoid workarounds, we should alter the
Mapsuch that it can be used with values that fit into a single field. This could be by providing a closure or the like. It might make theStorage::inita bit more verbose, but it should help on clarity and when using the map later in the code.