Dear all, I am very new to Ethereum, noob-new. This might anger many but, i have to ask, why is pragma solidity not functioning correctly. I have seem countless examples where pragma solidity ^0.4.0; works, but why doesn't it work for me? I tried this out on remix.ethereum.org, the ethereum browser based compiler.
I receive this error, help please, anyone!
browser/Untitled.sol:1:1: ParserError: Expected pragma, import directive or contract/interface/library definition.
pragma solidity ^0.4.0;
Here is the code:
pragma solidity ^0.4.0;
contract MyfirstContract{
string private name;
uint private age;
function setName(string newName){
name=newName;
}
fucntion getName() returns (string){
return;
}
}
function
is misspelled in getName(). Correct that.