1

I am trying to make my own ERC-token on the ethereum network.

However, when I try to compile at Solidity I get this error:

browser/ballot.sol:121:9: ParserError: Expected token Semicolon got 'Identifier' name = "UFDADollar"; // Set the name for display purposes ^

Here is the code:

function ERC20Token(
    ) {
    balances[msg.sender] = 1986000;               // Give the creator all initial tokens (100000 for example)
    totalSupply = 1986000                        // Update total supply (100000 for example)
    name = "UFDADollar";                           // Set the name for display purposes
    decimals = 0 ;                            // Amount of decimals for display purposes
    symbol = "UFDA";                               // Set the symbol for display purposes
}

Thanks for every answer.

1 Answer 1

3

As the error indicates, there's a semicolon missing at the end of the line totalSupply = 1986000.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.