You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the Slice type, I am currently receiving message.kind: any. Should I prompt the user to select a cell file as input in this scenario?
Regarding the String type, it currently appears blank, as shown in the attached screenshot. Instead of leaving it empty, we can display "string" or "text" when message.kind = "text" and the text property is not provided.
Should I prompt the user to select a cell file as input in this scenario?
Or we could ask them to provide a constant slice expression, like emptySlice(), rawSlice("4a_") or slice("te6cckEBAQEADgAAGEhlbGxvIHdvcmxkIXgtxbw="), see https://docs.tact-lang.org/ref/core-comptime.
Agree with @rahulyadav-57 and @anton-trunov. Adding anything extra would not be beneficial to the end-user, who is probably someone advanced and have their own workflow of composing cells/slices/etc., so we just need a simple way to accept those.
Thus, to re-iterate:
In case of String, instead of the current "": the user should probably see String: and then be allowed to type the String with or without the surrounding double-quotes "".
In case of Slice, the user will see Comptime Slice expression: and the hint saying For example, rawSlice("4a_").
To implement the latter, import the parseAndEvalExpression() function from src/interpreter.ts, and only provide the string as the first argument.
This contract
results in the following receivers:
Related Tact docs page: https://docs.tact-lang.org/book/receive/#receive-internal-messages
The text was updated successfully, but these errors were encountered: