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
22 changes: 11 additions & 11 deletions contracts/erc20_tutorial.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pragma solidity ^0.4.18;

// ----------------------------------------------------------------------------
// '0Fucks' token contract
// '0 Mobi' M0bi Coin
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
// Deployed to : 0xA10c703Ba22E7E6Eb5D4610C660038CA7Edca548
// Symbol : 0MOBI
// Name : 0 Mobi Coin
// Total supply: 100000000
// Decimals : 18
//
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 MobiCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
Expand All @@ -112,13 +112,13 @@ contract FucksToken is ERC20Interface, Owned, SafeMath {
// ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------
function FucksToken() public {
symbol = "0FUCKS";
name = "0 Fucks Token";
function MobiCoin() public {
symbol = "0MOBI";
name = "0 Mobi Coin";
decimals = 18;
_totalSupply = 100000000000000000000000000;
balances[0x5A86f0cafD4ef3ba4f0344C138afcC84bd1ED222] = _totalSupply;
Transfer(address(0), 0x5A86f0cafD4ef3ba4f0344C138afcC84bd1ED222, _totalSupply);
balances[] =0xA10c703Ba22E7E6Eb5D4610C660038CA7Edca548 _totalSupply;
Transfer(address(0), 0xA10c703Ba22E7E6Eb5D4610C660038CA7Edca548, _totalSupply);
}


Expand Down Expand Up @@ -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);
}
}
}