Omniscia LimeChain Audit
WrappedToken Code Style Findings
WrappedToken Code Style Findings
WTN-01C: Redundant Manual Getter Function
Type | Severity | Location |
---|---|---|
Code Style | Informational | WrappedToken.sol:L9, L71-L73 |
Description:
The _decimals
variable contains a same-name prefix-omitted getter function.
Example:
contracts/WrappedToken.sol
71function decimals() public view virtual override returns (uint8) {72 return _decimals;73}
Recommendation:
We advise the variable to be renamed omitting the underscore (_
) prefix and to be set as public
thus ensuring the compiler generates a getter automatically.
Alleviation:
The Limechain team has stated that they prefer to retain the current solution in place.