All Questions
3 questions
0
votes
0
answers
87
views
Error: Parse error: missing ';' at '{' using SOLHINT, how to fix it?
I have a typical ERC20 contract.
The contract compiles just fine and works, however when using some styling and security check with SOLHINT, it gives me this error for all my lines which have the &...
-1
votes
1
answer
34
views
Can someone please tell me whats the issue i am writing a starter code on remix from solidity: ParserError: Expected ';' but got '-'
pragma solidity ^0.8.6;
contract my_contract{
string public mystring - "hello world!";
}
I have just started coding on solidity I have no previous experience so can someone explain ...
3
votes
1
answer
639
views
Solidity IDE Parser Error on Token Name
Getting this in Solidity:
browser/ballot.sol:121:16: Parser Error: Expected Primary Expression.
Here is my code, says that it is the name line with the parser error
function ERC20Token(
) {
...