When I try to compile, I am getting some error regarding smart contract. But I am not understanding what it is because I dont know smart contract programming. Please help. I have mentioned the details below:
$ truffle compile
Compiling ./contracts/Hello-world.sol...
Compiling ./contracts/Migrations.sol...
Compilation warnings encountered:
/home/user/truffle/contracts/Hello-world.sol:7:4: SyntaxError: Functions are not allowed to have the same name as the contract. If you intend this to be a constructor, use "constructor(...) { ... }" to define it.
/home/user/truffle/contracts/Hello-world.sol:7:4: Warning: This declaration shadows an existing declaration.
function Hello() {
^ (Relevant source part starts here and spans across multiple lines).
Compilation failed. See above.