Feedback on Verifying Deployed Contracts on the IoTeX Network

Introduction:

This post provides feedback on the process of verifying deployed contracts on the IoTeX network, highlighting several areas for improvement.

1. Explorer Redirection Issues:

2. OpenZeppelin Library Compatibility:

  • The latest OpenZeppelin libraries require solc 0.8.20 and above, which is currently not supported by IoTeX.
  • This makes it difficult for developers who rely on OpenZeppelin for their contracts.
  • Suggestion:
    • Prioritize support for solc 0.8.20 and above on the IoTeX network to ensure compatibility with the latest OpenZeppelin libraries.
    • Provide alternative solutions for developers who cannot upgrade their solc versions due to dependencies.

3. API Support for Explorers:

  • Lack of API support for iotex explorers makes contract verification cumbersome.
  • Developers need to manually flatten their source codes and select appropriate compilation parameters, which can be time-consuming and error-prone.
  • Suggestion:
    • Implement API support for iotex explorers like iotexscan.io and iotexscout.io.
    • This would allow seamless integration with development tools like Remix IDE, forge cli, and Hardhat, simplifying the verification process for developers.

4. License mismatch Events:

  • Also noticed that the license option selected on the first page of the verification form doesn’t get applied when the second page is submitted often causing a mismatch on license specified on the explorer vs license specified in the source code
  • Suggestion:
    • Ensure that the license option selected in the first page is applied to the final page of the form before the form is submitted as the submitted data can not be modified by the user after it is submitted or provide a means to rectifier such mismatch events

Additional Recommendation:

  • Provide clear documentation or tutorials on the dev portal for developers trying to verifying contracts on the IoTeX network.
  • Consider offering support on discord to developers facing challenges with contract verification.
4 Likes

Thanks for your feedback as always @iChristwin - let me look through some of these ideas and get back to you. I def 100% agree that some more content to help devs here is needed, so expect some new tutorial coming up asap! :wink:

3 Likes