ERC20 veryfication problem, please help

I try to creat a simple ERC20 token , no extra nothing, using the openzapelin wizard, and the deplyment works fine, but when I try to verified, it always happen the same error, I tried on Optimsm and Arbitrum and keep the same error, how to fix ?

this is the code:

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

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

/// @custom:security-contact
contract AKATSUKI is ERC20 {
constructor() ERC20("AKATSUKI", "AKM") {
_mint(msg.sender, 1000000 * 10 ** decimals());

and the error is this:

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@4.9.3/token/ERC20/ERC20.sol" not found: File import callback not supported --> myc:4:1: | 4 | import "@openzeppelin/contracts@4.9.3/token/ERC20/ERC20.sol" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

just want to verify on arbscan, thank you guys!

try flatten the code, deploy and verify. still need help, let me know.

1 Like