June 2018
Beginner to intermediate
170 pages
3h 46m
English
The most fundamental use of a function is in the constructor of a contract. We did this in Chapter 1, Truffle for Decentralized Applications.
function TaskMaster() public { balances[msg.sender] = 10000; owner = msg.sender;}
The first thing you may notice is the public visibility specifier. This is not to be confused with the variable visibility specifiers we just covered. Functions have ...
Read now
Unlock full access