Beginner FriendlyFoundryGameFi
100 EXP
View results
Submission Details
Severity: low
Invalid

Variable `owner` Shadowing in `MartenitsaToken::updateCountMartenitsaTokensOwner` and `MartenitsaToken::getCountMartenitsaTokensOwner` functions

Summary

Variable Shadowing occurs when the variables in the parent contract use the same name as the variables in the base contract which can lead to unexpected behaviours.here the variable Variable owner of MartenitsaToken::updateCountMartenitsaTokensOwner and MartenitsaToken::getCountMartenitsaTokensOwner is shadowing owner variable of Ownable contract

Impact

Although it doesn't pose any serious risk as the contract version is greater than 0.6.0, Variable Shadowing if not intended should be avoided

Recommendations

Renaming the arguments in MartenitsaToken::updateCountMartenitsaTokensOwner and MartenitsaToken::getCountMartenitsaTokensOwner functions will mitigate this issue.

Updates

Lead Judging Commences

bube Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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