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
Summary
An optional low-severity dead code detector that finds suspicious Builder objects which are not converted to Cell or Slice.
Context
The Builder object should be converted to Cell or Slice using .endCell() or standard library functions such as asCell() or asSlice(), or stored in another Builder using .storeBuilder(). If this is not done, it could indicate disruptions in the contract's logic and should be reviewed by the auditor.
Examples
funstoreValue(value: Int): Cell {
letb=beginCell(); // Bad: Not converted to Cellb=b.storeInt(value, 16);
returnself.someCell; // Wrong value was returned
}
The text was updated successfully, but these errors were encountered:
Summary
An optional low-severity dead code detector that finds suspicious
Builder
objects which are not converted toCell
orSlice
.Context
The
Builder
object should be converted toCell
orSlice
using.endCell()
or standard library functions such asasCell()
orasSlice()
, or stored in anotherBuilder
using.storeBuilder()
. If this is not done, it could indicate disruptions in the contract's logic and should be reviewed by the auditor.Examples
The text was updated successfully, but these errors were encountered: