Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use lower case for Wasm persistence modes (#3479)
Change variant names for the Wasm memory persistence to lower case in line with the IC specification, i.e. using `keep` and `replace` instead of `Keep` and `Replace`. The Wasm memory persistence option is used for Motoko's enhanced orthogonal persistence, which is currently still in beta testing. The following components need to be updated once these changes are released on IC mainnet and `dfx`: * The Motoko compiler (dfinity/motoko#4854) * The Motoko playground (dfinity/motoko-playground#275) No change is needed for `dfx`. For installed Motoko programs using enhanced orthogonal persistence, the change only affects the programmatic upgrades of Motoko actor class instances. Existing such programs would need to be recompiled with a new Motoko compiler and upgraded. The IC detects mismatching variant names of Wasm memory persistence by raising an error while still preserving persistent memory.
- Loading branch information