Wieszcz
1
hi... i am getting an error when i am compiling. Below is my code.. please help.
pragma solidity >=0.6.0 <0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.3/contracts/token/ERC20/ERC20.sol"
contract Token is ERC20 {
constructor () public ERC20("SSSSPOLYGON", "SSS") {
_mint(msg.sender, 10000000 * (10 ** uint256(decimals())));
}
}
contracts/ssstoken.sol:5:1: ParserError: Expected ';' but got 'contract'
contract ERC20FixedSupply is ERC20 {
^------^
frangio
2
You need to pay careful attention to error messages:
ParserError: Expected ';' but got 'contract'
This is saying there is a semicolon missing right before your contract
keyword, this means at the end of the import statement.
Use Contracts Wizard if you need more help with the basics:
Please use triple backticks to surround your code in order to get proper formatting.
```
code here
```