You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Array.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.
Suggested Solution
Change Array.Get() to return Value instead of Storable.
This is prep work for Atree Register Inlining (#292) and will also harden the API.
The text was updated successfully, but these errors were encountered:
Issue To Be Solved
Currently,
Array.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
.Suggested Solution
Change
Array.Get()
to returnValue
instead ofStorable
.This is prep work for Atree Register Inlining (#292) and will also harden the API.
The text was updated successfully, but these errors were encountered: