hashgraph/hedera-smart-contracts

Expand Solidity Version Compatibility Interfaces

Closed this issue · 0 comments

Problem

The current implementation of interfaces such as IHRC in the hedera-smart-contracts repository is fixed to a specific Solidity version (e.g., pragma solidity ^0.8.7;). This version specificity limits compatibility with projects that use other Solidity versions, particularly those on older versions like 0.7.x. As a result, projects using older Solidity versions are forced to reimplement these interfaces to match their environment, leading to unnecessary duplication of effort and potential inconsistencies.

Solution

To enhance flexibility and broader compatibility, it is proposed to modify the Solidity version declaration in all interfaces within the hedera-smart-contracts repository. The version specification should be broadened to include a wider range of Solidity versions. This could be achieved by using something like pragma solidity >=0.5.0 <0.9.0;, which would cover a more extensive range of versions while still maintaining a cap to prevent future breaking changes in Solidity from impacting the interfaces.

Alternatives

No response