BriVault

First Flight #52
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

`joinEvent::BriVault` function should be made external

  • joinEvent::BriVault function is using public visibility specifier but is not used anywhere inside the contract.

  • The function should therefore be using external specifier instead of public.

contract BriVault is ERC4626, Ownable {
...
@> function joinEvent(uint256 countryId) public {
...
}
...
}

Risk

Likelihood: Low

Impact: Low/Gas

  • This is a gas Optimization.

Recommended Mitigation

  • It is recommended to change the visibility specifier from public -> external. Hence, optimizing the gas fee.

contract BriVault is ERC4626, Ownable {
...
- function joinEvent(uint256 countryId) public {
+ function joinEvent(uint256 countryId) external {
...
}
...
}
Updates

Appeal created

bube Lead Judge 21 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Gas optimizations

Gas optimizations are invalid according to the CodeHawks documentation.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!