15,000 USDC
View results
Submission Details
Severity: medium

Missing override Keyword

Summary

The burn function overrides the burn function from the ERC20Burnable contract, but it does not include the override keyword, which could lead to unintended behaviour.

Vulnerability Details

The burn function overrides the burn function from the ERC20Burnable contract, but it does not include the override keyword, which could lead to unintended behaviour.

Impact

Not using the override keyword can result in the burn function not properly overriding the parent function's behaviour, potentially leading to unexpected contract behaviour and security issues.

Tools Used

Remix, VSCode

Recommendations

To ensure proper function overriding, add the override keyword to the burn function. By adding the override keyword, you guarantee that the burn function correctly overrides the parent function.

Support

FAQs

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