Currently, OrderedMap.Get() returns Storable and client converts returned Storable to Value. However, it only makes sense to return Storable if client needs to remove register (slab) by StorageID (StorageIDStorable).
Get() should only provide Value without possibility of client manipulating the underlying Storable.
Corresponding issue for Array.Get() is #316.
Suggested Solution
Change OrderedMap.Get() to return Value instead of Storable.
This is prep work for Atree Register Inlining (#292) and will also harden the API.
Issue To Be Solved
Currently,
OrderedMap.Get()
returnsStorable
and client converts returnedStorable
toValue
. However, it only makes sense to returnStorable
if client needs to remove register (slab) byStorageID
(StorageIDStorable).Get()
should only provideValue
without possibility of client manipulating the underlyingStorable
.Corresponding issue for
Array.Get()
is #316.Suggested Solution
Change
OrderedMap.Get()
to returnValue
instead ofStorable
.This is prep work for Atree Register Inlining (#292) and will also harden the API.