Developers Forum for XinFin XDC Network

Discussion on: Some function calls aren't getting executed correctly

Collapse
gzliudan profile image
Daniel Liu • Edited on

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.

Collapse
haedarah_ali profile image
Haedarah Ali Author • Edited on

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:
The deployed code
Initiating the verification:
Explorer-slide1
Specifying the exact same settings in order to verify:
Explorer-slide2
Pasting the flattened code:
Explorer-slide3

Still, the contract isn't getting verified :((
What can I do better?

Collapse
gzliudan profile image
Daniel Liu

Could you please share your codes on GitHub ? Then I can study your issue.

Thread Thread
haedarah_ali profile image
Haedarah Ali Author
Thread Thread
gzliudan profile image
Daniel Liu • Edited on

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;
Enter fullscreen mode Exit fullscreen mode

Please change them to:

pragma solidity 0.8.23;
Enter fullscreen mode Exit fullscreen mode

Then compile and deploy your contracts again.

Thread Thread
Sloan, the sloth mascot
Comment deleted
haedarah_ali profile image
Haedarah Ali Author

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.