Use NativeStorage
trait bound for AccessoryState related things
#1057
Labels
enhancement
New feature or request
There are 2 ways to define
Storage
capabilities in Zk and Native mode:native
flagNativeStorage
trait boundCurrently both approaches are used, but I believe that second provides clearer type control, example can be seen in
#978
This issue suggest removing
fn get_accessory(&self, key: &StorageKey) -> Option<StorageValue>
fromStorage
trait and move it toNativeStorage
trait.This change will heavily affect
sov-modules-api
, as many things there probably needs to be feature gated behindnative
flag.Upside is that binary size for Zkvm should be smaller.
The text was updated successfully, but these errors were encountered: