March 2019
Intermediate to advanced
504 pages
17h
English
pragma solidity ^0.4.24; import "./Listing5_8_SimpleCoin.sol"; import "./Listing6_4_Ownable.sol"; interface ReleasableToken { function mint(address _beneficiary, uint256 _numberOfTokens) external; function release() external; function transfer(address _to, uint256 _amount) external; } contract ReleasableSimpleCoin is ReleasableToken, SimpleCoin { bool public released = false; modifier canTransfer() { if(!released) { revert(); } _; } constructor(uint256 _initialSupply) SimpleCoin(_initialSupply) public {} function release() onlyOwner public { released = true; } function transfer(address _to, uint256 _amount) canTransfer ...