In a future release, the
#[substorage(v1)] will determine the storage layout based on the component as well, so collisions will be avoided.Example
Here’s an example of a collision on theswitchable_value storage variable of the Switchable component.
Interface:
switchable_value storage variable, so they collide: