-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(builtins): bystr20_to_bech32's None type parameter (#1166)
See also Zilliqa/scilla-docs#166
- Loading branch information
Anton Trunov
authored
Sep 12, 2022
1 parent
93dbed7
commit 7b89520
Showing
4 changed files
with
17 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
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 @@ | ||
let emp = Emp (Int128) (Option String) in | ||
let key = Int128 -3 in | ||
let val = | ||
let str = "tzil" in | ||
let addr = 0x0000000000000000000000000000000000000000 | ||
in builtin bystr20_to_bech32 str addr | ||
in | ||
builtin put emp key val | ||
|
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,5 @@ | ||
(Map Int128 Option (String) [((Int128 -3) => (None))]), | ||
{ [val -> (None)], | ||
[key -> (Int128 -3)], | ||
[emp -> (Map Int128 Option (String) [])] } | ||
Gas remaining: 4001881 |