thank for your support i do a mult-file but i got compiler issue i look at the stable version 0.8.4 i have got other issue regarding constructor…msg say visibilite of constructor is ignored
regarding the constructor visiblity i remove public word and it was compiled correctly. but now i have other error after verifing like
ParserError: Source “GSN/Context.sol” not found: File import callback not supported
→ ERC20.sol:5:1:
|
5 | import “…/…/GSN/Context.sol”
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ParserError: Source “IERC20.sol” not found: File import callback not supported
→ ERC20.sol:6:1:
|
6 | import “./IERC20.sol”
| ^^^^^^^^^^^^^^^^^^^^^^
ParserError: Source “math/SafeMath.sol” not found: File import callback not supported
→ ERC20.sol:7:1:
|
7 | import “…/…/math/SafeMath.sol”
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ParserError: Source “utils/Address.sol” not found: File import callback not supported
→ ERC20.sol:8:1:
|
8 | import “…/…/utils/Address.sol”
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ParserError: Source “@openzeppelin/contracts/token/ERC20/ERC20.sol” not found: File import callback not supported
→ NoureddineKiranCoin.sol:4:1:
|
4 | import “@openzeppelin/contracts/token/ERC20/ERC20.sol”
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
one little trick, if you compiled it with the "optimize" button ticked, ensure on bscscan you have the box checked as well. i have seen it fail on bscan due to this little box.