-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Continues the saga of fixing #3140 by being more careful about deciding how to elide type bindings for prelude defined prims. c.f. https://forum.dfinity.org/t/persistent-stable-interface-compatibility-check-failed-error/11281/9?u=claudio
- Loading branch information
Showing
7 changed files
with
94 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import Prim = "mo:⛔"; | ||
actor { | ||
|
||
type None = Prim.Types.None; | ||
type Null = Prim.Types.Null; | ||
type Bool = Prim.Types.Bool; | ||
type Nat = Prim.Types.Nat; | ||
type Nat8 = Prim.Types.Nat8; | ||
type Nat16 = Prim.Types.Nat16; | ||
type Nat32 = Prim.Types.Nat32; | ||
type Nat64 = Prim.Types.Nat64; | ||
type Int = Prim.Types.Int; | ||
type Int8 = Prim.Types.Int8; | ||
type Int16 = Prim.Types.Int16; | ||
type Int32 = Prim.Types.Int32; | ||
type Int64 = Prim.Types.Int64; | ||
type Float = Prim.Types.Float; | ||
type Char = Prim.Types.Char; | ||
type Text = Prim.Types.Text; | ||
type Blob = Prim.Types.Blob; | ||
type Error = Prim.Types.Error; | ||
type Principal = Prim.Types.Principal; | ||
|
||
type Fresh = ?Fresh; | ||
|
||
type T = ( | ||
None, | ||
Null, | ||
Bool, | ||
Nat, | ||
Nat8, | ||
Nat16, | ||
Nat32, | ||
Nat64, | ||
Int, | ||
Int8, | ||
Int16, | ||
Int32, | ||
Int64, | ||
Float, | ||
Char, | ||
Text, | ||
Blob, | ||
//Error, | ||
Principal, | ||
Fresh | ||
); | ||
|
||
stable var t = [] : [T]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import Prim = "mo:⛔"; | ||
actor { | ||
|
||
type Fresh = ?Fresh; | ||
type T = ( | ||
None, | ||
Null, | ||
Bool, | ||
Nat, | ||
Nat8, | ||
Nat16, | ||
Nat32, | ||
Nat64, | ||
Int, | ||
Int8, | ||
Int16, | ||
Int32, | ||
Int64, | ||
Float, | ||
Char, | ||
Text, | ||
Blob, | ||
//Error, | ||
Principal, | ||
Fresh | ||
); | ||
|
||
stable var t = [] : [T]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ingress Completed: Reply: 0x4449444c016c01b3c4b1f204680100010a00000000000000000101 | ||
ingress Completed: Reply: 0x4449444c0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
→ update create_canister(record {settings = null}) | ||
← replied: (record {hymijyo = principal "cvccv-qqaaq-aaaaa-aaaaa-c"}) | ||
→ update install_code(record {arg = blob ""; kca_xin = blob "\00asm\01\00\00\00\0… | ||
← replied: () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ingress Completed: Reply: 0x4449444c016c01b3c4b1f204680100010a00000000000000000101 | ||
ingress Completed: Reply: 0x4449444c0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
→ update create_canister(record {settings = null}) | ||
← replied: (record {hymijyo = principal "cvccv-qqaaq-aaaaa-aaaaa-c"}) | ||
→ update install_code(record {arg = blob ""; kca_xin = blob "\00asm\01\00\00\00\0… | ||
← replied: () |