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

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton