Beatland Festival

First Flight #44
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Misleading natspec in FestivalPass::withdraw function

Misleading natspec comment in FestivalPass::withdraw function

Description

  • According to the natspec comment in FestivalPass::withdraw function, organizer withdraws ETH. But function is callable by owner only which depicts that natspec comment is misleading and can create confusion

  • Function can be called by Owner only and target is set to be Organizer

  • This is an silly comment that can led to confusion

@> // Organizer withdraws ETH
function withdraw(address target) external onlyOwner {
payable(target).transfer(address(this).balance);
}

Risk

Likelihood: low

Impact: low

Recommended Mitigation

+ // Organizer recieves ETH
- // Organizer withdraws ETH
function withdraw(address target) external onlyOwner {
payable(target).transfer(address(this).balance);
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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