nujan-io / nujan-ide

Web IDE, powered by Nujan, is your ultimate browser-based IDE designed to simplify the journey of writing, testing, compiling, deploying, and interacting with smart contracts on TON. Write smart contracts from anywhere, No setups, no downloads, just pure convenience and versatility.
https://ide.nujan.io
Other
98 stars 10 forks source link

Incorrect snippet: `map` #16

Closed novusnota closed 2 months ago

novusnota commented 3 months ago

Observed behaviour

Snippet map expands in map[type]type, which is a map in Golang, but not in Tact.

Expected behavior or possible solutions

Snippet map should expand in map<k, v>, where k is the key type and v is the value type of the map.

Please, edit the following lines: https://github.com/nujan-io/nujan-ide/blob/de839c2848f158d88870737b3568f54b36af716e/src/assets/ton/tact/snippets.ts#L32-L36