Hello Web3 World :)

pragma solidity ^0.4.0;
contract Hello {
string helloMsg;

function Hello(string msgArg) public {
    helloMsg = msgArg;
}

function sayHello() public constant returns (string) {
    return helloMsg;
}

}

1 Like