File import callback not supported when verify contracts

Hi abcoathup,

when I compile locally it worked fine and deployed. it throws error during verification of contract in BSC (File import callback not supported)


// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract CMATICToken is ERC20 {
    constructor(uint256 initialSupply) public ERC20("Classic MATIC", "cMATIC") {
        _mint(msg.sender, initialSupply);


your help is much appreciated.

Sorry, I am not familiar with the BSC-Chain, maybe you should ask for help in their forum: Home | Binance Chain Forum

And they have a documentation about how to verify contracts, maybe you can have a look at it:

I think you can verify contract in a single file or multi-files, for the single file, you need to package all contracts into a file with the tool: nomiclabs/truffle-flattener and manually verify on the bsc, as for multi-files, just follow the tutorials I shared above.

1 Like