Self Upgrade & State Migration
Three examples on how to handle updates and state migration:
- State Migration: How to implement a
migrate
method to migrate state between contract updates. - State Versioning: How to use readily use versioning on a state, to simplify updating it later.
- Self Update: How to implement a contract that can update itself.
State Migration
The State Migration example shows how to handle state-breaking changes between contract updates.
It is composed by 2 contracts:
- Base: A Guest Book where people can write messages.
- Update: An update in which we remove a parameter and change the internal structure.
- 🦀 Rust
Loading...