Function type from public to external #5
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
BouSalman
Vulnerability details
##Vulnerability Description
Some of the implemented functions inside the smart contracts are of type Public, However these functions are not used within the contracts.
Impact
Coding style quality.
Proof of Concept
https://github.com/code-423n4/2021-11-unlock/blob/52f3f3d0524dda28aea327181c3479d85782007b/smart-contracts/contracts/UnlockDiscountTokenV2.sol#L26
https://github.com/code-423n4/2021-11-unlock/blob/52f3f3d0524dda28aea327181c3479d85782007b/smart-contracts/contracts/Unlock.sol#L237
Tools Used
manual code review.
Recommended Mitigation Steps
Evaluate functions labeled as public and set to external if needed.
The text was updated successfully, but these errors were encountered: