Storage and storage schemas can diverge when storage layout is defined dynamically
- Lingua principale
- Rust
- Stelle
- 132
- Fork
- 167
- Merge medio
- 1g 23h
- PR unite (30g)
- 110
Descrizione
We have some components where storage layout is dynamic (i.e., whether some storage slots are present depends on values in other storage slots). This makes storage schemas (which are defined statically) diverge from the storage itself under some conditions (see https://github.com/0xMiden/protocol/pull/3648/changes#r3848434390). Potential ways to address it:
- Treat storage schemas as a superset of possible storage state (that's kind of how it works now).
- Move away from the dynamic storage pattern (not sure what the exact impact here would be).
- Make storage schemas dynamic as well (tricky to do for static definitions via TOML files).
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.