Skip to content

Commit

Permalink
Update src/pages/core/entrypoints/migrate.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Otter <chipshort@tutanota.com>
  • Loading branch information
aumetra and chipshort committed May 23, 2024
1 parent bcf21aa commit b4e70c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/core/entrypoints/migrate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const STATE_VERSION: &str = "v2";

#[entry_point]
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> StdResult<Response> {
// Check if the state version is older than the current one
// Check if the state version is older than the current one and update it
cw2::ensure_from_older_version(deps.storage, CONTRACT_NAME, STATE_VERSION)?;

// Load the old data
Expand Down

0 comments on commit b4e70c6

Please sign in to comment.