-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SendParameters
: Constant for mode: 0
#988
Comments
The
|
@anton-trunov We have seen many cases in real-world contracts where people simply write Should we just ignore these cases or raise warnings asking them to remove the |
We can add |
We can define a constant for the
0
mode value to improve readability and describe the default behavior more clearly. This constant will replace any direct usage of0
in themode
field throughout the codebase, as commonly seen in real-world contracts.This change will make choosing the default mode more explicit and could be leveraged by
SuspiciousMessageMode
, which detects such cases: nowarp/misti#199.Context: https://docs.tact-lang.org/book/message-mode/
The text was updated successfully, but these errors were encountered: