2022 Developer Survey is open! Take survey.
1 of 2
Oscar Chambers
  • 585
  • 1
  • 5
  • 18

totalSupply() Solidity signature causing conflict error

I'm writing a very basic ERC20 token using solidity in the Mist wallet. For some reason the compiler doesn't like the totalSupply() function name. If I change this name it compiles fine.

To be ERC20 compliant, this function has to be signed this way.

How do I get around this error?

Solidity Code

enter image description here

Oscar Chambers
  • 585
  • 1
  • 5
  • 18