Verify contract: ParserError: Source “” not found

Hi, Im trying to verify my contract and getting same error with my contract:


// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "";

contract CoinName is ERC20 {
    constructor(uint256 initialSupply) public ERC20("CoinName","CoinSymbol") {
        _mint(msg.sender, initialSupply);

ParserError: Source “” not found: File import callback not supported
→ myc:5:1:

Could you help me? Thanks!!

1 Like

Hi @jscrui,

Welcome to the community :wave:

You should only use an official release of OpenZeppelin Contracts. Currently you are importing via GitHub the master branch which is subject to change.

Remix now supports @ (npm style) imports. Try this using the Contracts Wizard:

As for verifying you can try the following with Hardhat: Verify smart contract inheriting from OpenZeppelin Contracts

Hello Andrew,
how/where to install the hardhat please?
I used a github openzeppelin contract... same problem:

I really try to understand your hardhat explaination - do you have a link to a video or other source, that explains is more detailed/in a way I can understand it as a newbie please?