Linting rules
E016: send-mode-literal
Warns when `send` mode is passed as numeric literal instead of `SEND_MODE_*` constants.
Metadata
Code:E016Rule:send-mode-literalStatus: Stable sincev0.0.1Quick fix: sometimes available
What it does
Warns when send mode is passed as numeric literal instead of SEND_MODE_* constants.
Why is this bad?
Numeric send modes are hard to read and easy to misuse. Named constants make intent explicit and reduce mistakes.
Example
outMsg.send(3);Use instead:
outMsg.send(SEND_MODE_PAY_FEES_SEPARATELY + SEND_MODE_IGNORE_ERRORS);Last updated on