Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions contracts/erc20_tutorial.sol
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
pragma solidity ^0.4.18;

// ----------------------------------------------------------------------------
// '0Fucks' token contract
// 'TCM' token contract
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would you change the name?

//
// Deployed to : 0x5A86f0cafD4ef3ba4f0344C138afcC84bd1ED222
// Symbol : 0FUCKS
// Name : 0 Fucks Token
// Total supply: 100000000
// Decimals : 18
// Symbol : TCM
// Name : TCM Token
// Total supply: 21000000
// Decimals : 10
//
// Enjoy.
//
// (c) by Moritz Neto with BokkyPooBah / Bok Consulting Pty Ltd Au 2017. The MIT Licence.
// (c) by ALP. The MIT Licence.
// ----------------------------------------------------------------------------


Expand Down Expand Up @@ -99,7 +99,7 @@ contract Owned {
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ----------------------------------------------------------------------------
contract FucksToken is ERC20Interface, Owned, SafeMath {
contract TCM is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
Expand All @@ -112,11 +112,11 @@ contract FucksToken is ERC20Interface, Owned, SafeMath {
// ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------
function FucksToken() public {
symbol = "0FUCKS";
name = "0 Fucks Token";
decimals = 18;
_totalSupply = 100000000000000000000000000;
function TheCommonMan() public {
symbol = "TCM";
name = "0 TCM Token";
decimals = 10;
_totalSupply = 210000000;
balances[0x5A86f0cafD4ef3ba4f0344C138afcC84bd1ED222] = _totalSupply;
Transfer(address(0), 0x5A86f0cafD4ef3ba4f0344C138afcC84bd1ED222, _totalSupply);
}
Expand Down Expand Up @@ -207,7 +207,7 @@ contract FucksToken is ERC20Interface, Owned, SafeMath {


// ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
function () public payable {
revert();
Expand All @@ -220,4 +220,4 @@ contract FucksToken is ERC20Interface, Owned, SafeMath {
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
}
}