-
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.
Showing
5 changed files
with
69 additions
and
9 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,39 @@ | ||
mock SetAccountStorageHook ( 8738216329480387967 , 1000000000000000000000000000000000000000000000000000000000000 ) ulmNoResult(); | ||
mock GetAccountStorageHook ( 8738216329480387967 ) ulmIntResult(1000000000000000000000000000000000000000000000000000000000000, u256); | ||
|
||
push "setMyData256"; | ||
hold_string_from_test_stack; | ||
push "uint256"; | ||
hold_list_values_from_test_stack; | ||
push 1_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_u256; | ||
hold_list_values_from_test_stack; | ||
encode_call_data; | ||
return_value; | ||
mock CallData; | ||
|
||
call_contract 12345; | ||
return_value; | ||
check_eq (); | ||
|
||
push_status; | ||
check_eq 2; | ||
|
||
|
||
push "getMyData256"; | ||
hold_string_from_test_stack; | ||
encode_call_data; | ||
return_value; | ||
mock CallData; | ||
|
||
call_contract 12345; | ||
return_value; | ||
check_eq (); | ||
|
||
push_status; | ||
check_eq 2; | ||
|
||
output_to_arg; | ||
call :: test_helpers :: decode_single_u256; | ||
return_value; | ||
|
||
check_eq 1_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_u256 |
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
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