-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89754c9
commit 29bc2cc
Showing
3 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
addAccount("Owner"); | ||
setCallee("Owner"); | ||
new Storage; | ||
set_named "self"; | ||
push_named "self"; | ||
call Storage.get_no_arg; | ||
get_bigint_from_struct; | ||
check_eq mxIntValue(0) |
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,20 @@ | ||
addAccount("Owner"); | ||
setCallee("Owner"); | ||
new Storage; | ||
set_named "self"; | ||
|
||
push_named "self"; | ||
push 10u64; | ||
call Storage.set_no_arg_if_empty; | ||
push_named "self"; | ||
call Storage.get_no_arg; | ||
get_bigint_from_struct; | ||
check_eq mxIntValue(10); | ||
|
||
push_named "self"; | ||
push 20u64; | ||
call Storage.set_no_arg_if_empty; | ||
push_named "self"; | ||
call Storage.get_no_arg; | ||
get_bigint_from_struct; | ||
check_eq mxIntValue(20) |
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