Comment Comment by drcode It would look something like:contract Hello { string greeting; function setName(string name) { greeting="Hello "+name; } }The solidity compiler will automatically produce a "getter" function to retrieve the greeting. parent drcode 10 years ago
contract Hello { string greeting; function setName(string name) { greeting="Hello "+name; } }
The solidity compiler will automatically produce a "getter" function to retrieve the greeting.