Omniscia Alliance Block Audit
StakeTransferer Code Style Findings
StakeTransferer Code Style Findings
STR-01C: Empty Block Function
| Type | Severity | Location |
|---|---|---|
| Code Style | Informational | StakeTransferer.sol:L18-L20 |
Description:
The linked function contains an empty code block.
Example:
contracts/StakeTransferer.sol
18function exitAndTransfer(address transferTo) virtual public {19 20}Recommendation:
As the contract is abstract, the function code block brackets ({}) can be entirely omitted and substituted by the ; symbol signifying the end of the function declaration in the same format an interface would contain.
Alleviation:
The empty code block was omitted from the codebase and the function declaration made to end with a semicolon.