Skip to content

Commit

Permalink
Merge branch 'master' into update/motoko-base-3cf818d70bf877458d1ebe7…
Browse files Browse the repository at this point in the history
…a2f047fa0b9fec105
  • Loading branch information
mergify[bot] authored Dec 18, 2024
2 parents 0655556 + aa676b2 commit c714b70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/md/canister-maintenance/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Adding a new record field to the type of existing stable variable is not support

### Solution

To resolve this issue, an [explicit](#explicit-migration) is needed:
To resolve this issue, an [explicit migration](#explicit-migration) is needed:

1. You must keep the old variable `map` with the same structural type. However, you are allowed to change type alias name (`Card` to `OldCard`).
2. You can introduce a new variable `newMap` and copy the old state to the new one, initializing the new field as needed.
Expand Down
6 changes: 3 additions & 3 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"homepage": "",
"owner": "dfinity",
"repo": "candid",
"rev": "067025a8c55c2b843fce40f6ba38ffe6dd543b84",
"sha256": "047j585rlfilcczrslvyanycp4qqfnzy31crxgcz8sazz7jbk1za",
"rev": "87f42eefb1070381565d8de3235628a674641fbd",
"sha256": "1kfchlrfwk5b6ahhkkrkf9iby9znjri4jcjwbm3kwiqx8g9v97dp",
"type": "tarball",
"url": "https://github.com/dfinity/candid/archive/067025a8c55c2b843fce40f6ba38ffe6dd543b84.tar.gz",
"url": "https://github.com/dfinity/candid/archive/87f42eefb1070381565d8de3235628a674641fbd.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"esm": {
Expand Down

0 comments on commit c714b70

Please sign in to comment.