Warning: Visibility for constructor is ignored. If you want the contract to be non-deployable, making it “abstract” is sufficient. → contracts/Neptune.sol:8:5: | 8 | constructor(uint256 initialSupply) public ERC20(“TokenName”, “TokenSymbol”) { | ^ (Relevant source part starts here and spans across multiple lines).
(I’ve replaced my name/symbol with “TokenName” and “TokenSymbol” as placeholders, my actual project name and .sol file name match up.)
Anyways, I then follow what it says and replace “public” with the word “abstract” and then it sparks this error.
So, I’m not sure what to do at this point and I’ve looked at some of the links on here and can’t seem to find a very direct answer. If anyone could provide a direct answer it would be greatly appreciated, thank you!
Hi! I’ve resorted to importing code instead, seems to have launched the token and works fine. If you’re able to offer additional help, with this set of code here;
contract TokenName is ERC20 {
constructor(uint256 initialSupply) public ERC20 (“TokenName”, “TOKEN”){
_mint(msg.sender,initialSupply);
}
}
How would I add my own functions such as a transaction fee that of 10% that is able to burn 3%, send 3% to holders, 3% to liquidity, and 1% to a wallet?
Any help is always appreciated, thank you for the help thus far!