Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 &...
Pro Girl's user avatar
  • 267
-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 ...
Jitesh Sharma's user avatar
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( ) { ...
aka's user avatar
  • 31