Developers Forum for XinFin XDC Network
You are using solidity v0.8.26 which is not supported by xdc chain at current time. Please use v0.8.23 instead, and feel free to call me if you still face problem.
Thanks for the reply. I tried to adjust the compiler version, but the contract isn't getting verified on the new settings.
Settings on Remix: Initiating the verification: Specifying the exact same settings in order to verify: Pasting the flattened code:
Still, the contract isn't getting verified :(( What can I do better?
Could you please share your codes on GitHub ? Then I can study your issue.
github.com/Haedarah/xdc-lite-version
Please set version to v0.8.23 in solidity files correctly. I found you are still using higher versions, such as:
pragma solidity ^0.8.20; pragma solidity ^0.8.26;
Please change them to:
pragma solidity 0.8.23;
Then compile and deploy your contracts again.
I have added a directory that includes the codes that I am actually deploying and using for verification: ( github.com/Haedarah/xdc-lite-versi... )
I shared the separated codes earlier because it is easier to deal with them.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
You are using solidity v0.8.26 which is not supported by xdc chain at current time. Please use v0.8.23 instead, and feel free to call me if you still face problem.
Thanks for the reply.
I tried to adjust the compiler version, but the contract isn't getting verified on the new settings.
Settings on Remix:
Initiating the verification:
Specifying the exact same settings in order to verify:
Pasting the flattened code:
Still, the contract isn't getting verified :((
What can I do better?
Could you please share your codes on GitHub ? Then I can study your issue.
github.com/Haedarah/xdc-lite-version
Please set version to v0.8.23 in solidity files correctly. I found you are still using higher versions, such as:
Please change them to:
Then compile and deploy your contracts again.
I have added a directory that includes the codes that I am actually deploying and using for verification:
( github.com/Haedarah/xdc-lite-versi... )
I shared the separated codes earlier because it is easier to deal with them.