Support storage slot additions and removals
Author: Mirko-von-LeipzigCreated Sep 15, 2026Updated Sep 18, 2026
Labelsquestionon hold
This feature already exists in the protocol but is not accessible for users yet.
We'll need to support this in the node. At the surface level, we only need to concern ourselves with the addition/removal of slots after deployment. However, there are some edge cases to consider, primarily for network accounts.
Networks accounts are defined by requiring two specific storage slots. This means, if addition/removal is allowed, then accounts could add or remove these slots in post deployment, effectively changing between account and network account types.
While the protocol allows for this, this does not mean we need to support this behavior. Or perhaps we want to allow this.
Some options:
- Disallow changing these slots entirely at the RPC level. Accounts cannot become network accounts and vice versa.
- Allow it, the network tx builder already receives the full block data so it can detect such changes and react to them.
- Allow it, but ignore it. i.e. accounts cannot become network accounts, or at least won't be processed as such.
- Disallow at the protocol level
Source: 0xMiden/node