diff --git a/e2e/assets/counter_idl/counter_idl.mo b/e2e/assets/counter_idl/counter_idl.mo index 994f8281a2..09fd7ab061 100644 --- a/e2e/assets/counter_idl/counter_idl.mo +++ b/e2e/assets/counter_idl/counter_idl.mo @@ -1,17 +1,18 @@ import A "mo:base/Array"; -import Prim "mo:prim"; +import C "mo:base/Char"; +import T "mo:base/Text"; actor { public type List = ?{head : T; tail : List}; public type List2 = { #nil; #cons: (T, List2) }; - - func map(l: List) : List = { + + func map(l: List) : List { switch l { case null { null }; case (?v) { ?{head=v.head+1; tail=map(v.tail)} }; } }; - func map2(l: List2) : List2 = { + func map2(l: List2) : List2 { switch l { case (#nil) { #nil }; case (#cons(h, tl)) { #cons(h+1, map2 tl) }; @@ -26,8 +27,8 @@ actor { var text = ""; for (c in str.chars()) { - let c2 = Prim.word32ToChar(Prim.charToWord32(c)+1); - text := text # Prim.charToText(c2); + let c2 = C.fromNat32(C.toNat32(c)+1); + text := text # T.fromChar(c2); }; return (i+1, not b, text, arr, map(l), map2(l2)); }; diff --git a/e2e/assets/identity/identity.mo b/e2e/assets/identity/identity.mo index 214ec94349..375f46c30a 100644 --- a/e2e/assets/identity/identity.mo +++ b/e2e/assets/identity/identity.mo @@ -1,6 +1,6 @@ import P "mo:base/Principal"; -shared {caller} actor class () = Self { +shared({caller}) actor class () = Self { private let initializer : Principal = caller; public shared(msg) func fromCall(): async Principal { diff --git a/nix/sources.json b/nix/sources.json index 6df924d2c5..85b8345e70 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -46,7 +46,7 @@ "motoko": { "branch": "release", "repo": "ssh://git@github.com/dfinity/motoko", - "rev": "85651c6b2d118cc068c4263f6fe548a85e805861", + "rev": "7a2a0e456ae0f18865cd8ab6b4a3d77863ce578f", "tag": "0.5.10", "type": "git" },