Part 2

Zaros
PerpetualsDEXFoundrySolidity
70,000 USDC
View results
Submission Details
Severity: low
Invalid

"Identifier Shadowing in Solidity: A Code Smell"

Summary

Identical identifier names across different contracts or libraries can lead to unexpected behavior and make your codebase harder to maintain.

Vulnerability Details

  • Identifier shadowing due to duplicate name usage.

  • Potential for execution errors and confusion in the codebase.

Impact

  1. Unexpected Behavior: Duplicate identifiers may cause Solidity compiler issues, leading to incorrect or incomplete contract deployment.

  2. Code Complexity: Conflicting identifier names can make your smart contracts harder to understand and maintain.

Tools Used

Solidity Unit Testing Compiler

Recommendations

  1. Unique Identifier Names: Ensure each contract has a distinct name to avoid conflicts.

  2. Refactor Contracts: Break down complex logic into separate, clearly named contracts for better code organization.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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