Skip to content

Commit

Permalink
feat!: Lowercase WasmMemoryPersistence (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity authored Jan 29, 2025
1 parent c584390 commit 9ebf631
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

* Updated the serialization of `WasmMemoryPersistence`.

## [0.39.3] - 2025-01-21

* Added `wasm_memory_threshold` field to `CanisterSettings`.
Expand Down
2 changes: 2 additions & 0 deletions ic-utils/src/interfaces/management_canister/builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,11 @@ impl<'agent, 'canister: 'agent> IntoFuture for CreateCanisterBuilder<'agent, 'ca
pub enum WasmMemoryPersistence {
/// Retain the main memory across upgrades.
/// Used for enhanced orthogonal persistence, as implemented in Motoko
#[serde(rename = "keep")]
Keep,
/// Reinitialize the main memory on upgrade.
/// Default behavior without enhanced orthogonal persistence.
#[serde(rename = "replace")]
Replace,
}

Expand Down

0 comments on commit 9ebf631

Please sign in to comment.