ton-blockchain / ton

Main TON monorepo
Other
2.95k stars 891 forks source link

Fift: dictforeach only supports unsigned keys #241

Closed Skydev0h closed 4 years ago

Skydev0h commented 4 years ago

A small silly problem: dictforeach only can emit unsigned keys per iteration. Because of this I had to do some very wacky shenaningans to get signed index. The resolution seems to be pretty straightforward - maybe add a sgnd bool to interpret_dict_foreach and add new idictforeach or dictforeachi or whatever, and pass that bool to import_bits.

Skydev0h commented 4 years ago

Implemented very swiftly in latest commit as idictforeach and idictmap, thanks!