Project

One World
NFTDeFi
15,000 USDC
View results
Submission Details
Severity: low
Invalid

Wide Solidity Pragma Version Declaration

Root Cause:

The Solidity pragma statements in the contracts use a wide version range (^0.8.13), which allows the code to be compiled with any compiler version from 0.8.13 up to but not including 0.9.0. This can lead to unintended behavior if the code is compiled with a future compiler version that introduces breaking changes or new opcodes not supported by all networks.

// src/Counter.sol
pragma solidity ^0.8.13;

Impact:

  • Unexpected Behavior: Future versions of the compiler might change language semantics or introduce new features that could alter how the contract operates when recompiled.

  • Security Vulnerabilities: If the contract is compiled with a newer compiler version without a thorough audit, it might introduce vulnerabilities due to unanticipated changes.

  • Deployment Issues: Compiling with a newer version might generate bytecode that uses opcodes not supported on all chains, leading to deployment failures.

Updates

Lead Judging Commences

0xbrivan2 Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
0xbrivan2 Lead Judge about 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.

Give us feedback!