ParserError: Source "@openzeppelin/contracts@5.0.0/token/ERC20/ERC20.sol" not found: File import callback not supported
--> myc:4:1:
|
4 | import "@openzeppelin/contracts@5.0.0/token/ERC20/ERC20.sol"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ParserError: Source "@openzeppelin/contracts@5.0.0/token/ERC20/extensions/ERC20Burnable.sol" not found: File import callback not supported
--> myc:5:1:
|
5 | import "@openzeppelin/contracts@5.0.0/token/ERC20/extensions/ERC20Burnable.sol"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ParserError: Source "@openzeppelin/contracts@5.0.0/access/Ownable.sol" not found: File import callback not supported
--> myc:6:1:
|
6 | import "@openzeppelin/contracts@5.0.0/access/Ownable.sol"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ParserError: Source "@openzeppelin/contracts@5.0.0/token/ERC20/extensions/ERC20Permit.sol" not found: File import callback not supported
--> myc:7:1:
|
7 | import "@openzeppelin/contracts@5.0.0/token/ERC20/extensions/ERC20Permit.sol"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
My smartcon
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
contract Fulvium is ERC20, ERC20Burnable, Ownable, ERC20Permit {
constructor(address initialOwner)
ERC20("Fulvium", "FLV")
Ownable(initialOwner)
ERC20Permit("Fulvium")
{
_mint(msg.sender, 100000000 * 10 ** decimals());
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
}