-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented main functionality in Tact
- Loading branch information
1 parent
99513a4
commit a9ac9f0
Showing
2 changed files
with
101 additions
and
43 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
slice tact_fill_zeros() asm "x{0000000000000000000000000000000000000000000000000000000000000000} b{0} |+ PUSHSLICE"; | ||
|
||
cell fill_zeros(cell jetton_masters) { | ||
cell fill_zeros(cell jetton_masters, int want_len) impure inline_ref { | ||
cell assets = new_dict(); | ||
slice zero_cs = tact_fill_zeros(); | ||
while (~ jetton_masters.dict_empty?()) { | ||
var(_, wallet_addr, _) = jetton_masters~dict::delete_get_min(267); | ||
assets~dict_set(267, wallet_addr, zero_cs); | ||
assets~dict_set(267, wallet_addr, tact_fill_zeros()); | ||
want_len -= 1; | ||
} | ||
throw_if(170, want_len); | ||
return assets; | ||
} | ||
} |
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