Cannot verify smart-contract because of openZeppelin import. Will drop 100$ to the first person who solves my problem

Hi Gentlemen,

The title is pretty clear, I get this error:


Compiler debug log:
Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])
For troubleshooting, you can try compiling your source code with the Remix - Solidity IDE and check for exceptions

Compiler Warning(s):

ParserError: Source "@openzeppelin/contracts/token/ERC20/IERC20.sol" not found: File import callback not supported --> myc:4:1: | 4 | import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ParserError: Source "@openzeppelin/contracts/access/Ownable.sol" not found: File import callback not supported --> myc:5:1: | 5 | import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ParserError: Source "@openzeppelin/contracts/utils/Context.sol" not found: File import callback not supported --> myc:6:1: | 6 | import {Context} from "@openzeppelin/contracts/utils/Context.sol" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Compiler Version: v0.8.7+commit.e28d00a7
  • Optimization Enabled: False
  • Runs: 200

The thing is I know some people use the truffle flattener, but the tools says it does not handle import like these:

Limitations

Aliased imports (eg: import {symbol1 as alias, symbol2} from "filename"; ) are not supported by truffle-flattener .

What are your solutions ?

Thanks,

@Armin_D.S.K did you figure this out?