Skip to content

Commit e86b374

Browse files
marc0oloclaude
andcommitted
chore: bump moc/core, use --default-persistent-actors, pin recipe fix branch
- moc 1.5.1 → 1.8.2, core 2.4.0 → 2.5.0 - Add --default-persistent-actors to moc args so the persistent keyword is no longer needed in main.mo - Pin Motoko recipe to fix/motoko-mops-moc-args branch until dfinity/icp-cli-recipes#26 merges and a stable release is cut Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cbe06e9 commit e86b374

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

motoko/who_am_i/icp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ networks:
66
canisters:
77
- name: backend
88
recipe:
9-
type: "@dfinity/motoko@v4.1.0"
9+
type: https://raw.githubusercontent.com/dfinity/icp-cli-recipes/refs/heads/fix/motoko-mops-moc-args/recipes/motoko/recipe.hbs
1010
configuration:
1111
main: src/backend/main.mo
1212
candid: src/backend/backend.did

motoko/who_am_i/mops.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[toolchain]
2-
moc = "1.5.1"
2+
moc = "1.8.2"
33

44
[dependencies]
5-
core = "2.4.0"
5+
core = "2.5.0"
66

77
[moc]
88
# M0236: use context dot notation (e.g. x.toText() instead of Nat.toText(x))
99
# M0237: redundant explicit implicit arguments (e.g. Nat.compare is inferred automatically)
1010
# M0223: redundant type instantiation (e.g. Array.tabulate instead of Array.tabulate<T>)
11-
args = ["-W=M0236,M0237,M0223"]
11+
args = ["--default-persistent-actors", "-W=M0236,M0237,M0223"]

motoko/who_am_i/src/backend/main.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Principal "mo:core/Principal";
22

3-
persistent actor Whoami {
3+
actor Whoami {
44
public query (message) func whoami() : async Principal {
55
message.caller;
66
};

0 commit comments

Comments
 (0)