hello, I’m trying to work on an Agric based cooperative society native token by importing openzeppelin ERC20.sol contract but i keep getting this error notecontract address ’ Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])
Hi, welcome!
I think you can share your contract source code if possible.
1 Like
Thanks for checking in, here is the code. I’ve been trying to verify on bscscan but unsuccessful
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract CoopCoin is ERC20 {
constructor(uint256 initialSupply) public ERC20 ("CoopCoin", "COOP"){
_mint(msg.sender, initialSupply);
}
}
I think you can have a look at this tutorial: Verify erc20 token on etherscan that was deployed through remix:step by step guide
And for next time, please have a search in the forum before asking questions, thanks!