November 2018
Intermediate to advanced
528 pages
13h 21m
English
The next step is to define the main contract behind our game: Ctontine. In Solidity, when a contract implements an interface, the class agrees to implement all of its methods. Hence, if you miss implementing a function defined in the inherited interface, you’ll get the following error (in Remix):

As we do for inheritance, we use the is keyword to implement the interface, as follows:
contract Ctontine is Itontine {..}Now, let's fill this empty contract. Within the preceding bracket, we start by declaring the following contract states:
mapping (address => uint256 ) public Tpension; Cplayer.player[] ...
Read now
Unlock full access