在以太測試鏈發幣

Medium: 免學程式碼,教你輕鬆在以太坊測試鏈發幣 (opens new window)

參考文章中的合約來源 404 了
替換用下面的程式碼來做發幣

pragma solidity ^0.5.0;

import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/docs-v2.x/contracts/token/ERC20/ERC20.sol";
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/docs-v2.x/contracts/token/ERC20/ERC20Detailed.sol";

/**
 * Referenced from: https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/examples/SimpleToken.sol
 */
contract SimpleToken is ERC20, ERC20Detailed {

  uint256 public constant INITIAL_SUPPLY = 1e7 * (1e18);

  constructor() public ERC20Detailed("InZendToken", "INT", 18) {
    _mint(msg.sender, INITIAL_SUPPLY);
  }

}

# 科普用