Developers Forum for XinFin XDC Network

Raghuram Dharanipathy
Raghuram Dharanipathy

Posted on • Updated on

[Solved]Smart contract Verify&Publish errored out in Apothem explorer

Hello Members,

While doing verification of smart contract, the API(https://explorer.apothem.network/api/contracts) of Apothem explorer has failed, due to that we are unable to Verify&publish and the page is loading forever.

Image description

Could someone fix this issue in "https://explorer.apothem.network/"? So, I can verify & publish the contract.

Discussion (9)

Collapse
gzliudan profile image
Daniel Liu

Please update solidity compiler to v0.4.26, then try again.

Collapse
raghuram profile image
Raghuram Dharanipathy Author

Daniel Liu,

Our contract has needs lot of modification with the builtin libraries. So, as you guided I did the verify&publish using the version 0.6.12 and it was done successfully.

@mitali_blocksscan,

If possible, please publish the list of supported versions of solidity for verify&publish feature in Blocksscan explorer. This will help the community to build smart contract on the supported version when they want to verify&publish the contract.

Collapse
mitali_blocksscan profile image
Mitali_BlocksScan

Thank you @raghuram for your suggestion
We will try to do that.

Thread Thread
raghuram profile image
Raghuram Dharanipathy Author

@mitali_blocksscan

If you have the list of supporting versions in solidity to verify and publish smart contract in explorer, kindly update.

Collapse
mitali_blocksscan profile image
Mitali_BlocksScan

Thank you Daniel.
Yes, Please try with solidity compiler version to v0.4.26 while verifying.
No need to change the compiler version in the source code.
Image description

Collapse
gzliudan profile image
Daniel Liu • Edited on

I deployed your contract with hardhat, and fail to verify it in explorer also.

Image

Collapse
gzliudan profile image
Daniel Liu

Please set Optimization to No, then try again.

Collapse
logeswaran profile image
Lokesh

We have tried that option as well, but when we set Optimization to "NO", it is not even accepting the inputs.

Collapse
mitali_blocksscan profile image
Mitali_BlocksScan

Hello @raghuram,

Kindly share your Smart Contract at support@blocksscan.io