August 2019
Intermediate to advanced
486 pages
13h 52m
English
In the inheritance hierarchy of the contracts, their constructors will be called as per the linearization rule. If any of the contracts need arguments to be passed it, it must supply those arguments from the derived contracts.
There are two ways you can pass arguments to the constructors of the base contract:
You can use either approach—they are both easy to implement. Let's take a look at them:
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";contract DetailedERC20 is ERC20 { string public name; string public symbol; uint8 public decimals; constructor(string ...