LoginSignup
0
0

More than 3 years have passed since last update.

ERC20メモ

Posted at

pragma solidity ^0.6.0;

import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";

contract MyCompanyToken is ERC20 {

string private _name = "xxxxxx";
string private _symbol = "ABC";

constructor() ERC20( _name, _symbol) public {
    _setupDecimals(8);                      //小数点以下の以下の桁数を明示的に指定(8桁)する
    _mint(msg.sender, 2100000000000000); //2100万枚発行
}

}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0