This Is My First ERC20 Smart Contract Token. I Am Trying To Compile It Using Solidity 0.5.0. Plz Need Your Help Guys.
pragma solidity ^0.5.0;
contract TusharCoin {
uint256 public totalSupply;
string public name;
string public symbol;
uint32 public decimals;
constructor () public {
symbol = "TUSHAR";
name = "TusharCoin";
decimals = 5;
totalSupply = 100000000000;
}
constructor() public {
owner = msg.sender;
balances[msg.sender] = totalSupply;
}
emit Transfer(0x0, msg.sender, totalSupply);
}
Error- Function, Variable, Struct Or Modifier Declaration Expected.
emit Transfer(0x0, msg.sender, totalSupply);
^--^