CodeChain-io / CodeChain-io/foundry

Devise a way to add a substorage when new module are deployed

Open
#514 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
36
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Currently just adding an empty substorage for ongoing use is considered a state change, resulting in a new root hash. It means that there must conceptually be a transaction to add a new empty substorage. When we upgrade applications, there might be cases where a new module with its own state is introduced. And this behavior introduces some hassles.

I'm not sure if this problem is solved if we can add an empty substorage without a transaction and the state changes only upon a change to the substorage. But it might be so.

We need to inspect this problem at least when we design the on-chain governance and upgrade scheme.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.