Skip to content
Verified contractPartial

HackerSpaceBarneysToken

Address0x829b6f77c8eba3c0dc42e09111b74bdd9390508a
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.4.10

 

Same code

14 more contracts

 

Details

Compiler
solc 0.4.10+commit.f0d539ae
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
3,556,968
Creation transaction
0xf3f93b412d…95b9e6e69a
Main copy (most transactions)
0xf75f3c62…9a7f0857

HackerSpaceBarneysToken.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract HackerSpaceBarneysToken {
    /* This creates an array with all balances */
    mapping (address => uint256) public balanceOf;

    /* Initializes contract with initial supply tokens to the creator of the contract */
    function HackerSpaceBarneysToken() {
        balanceOf[msg.sender] = 1000000;              // Give the creator all initial tokens
    }

    /* Send coins */
    function transfer(address _to, uint256 _value) {
        if (balanceOf[msg.sender] < _value) throw;           // Check if the sender has enough
        if (balanceOf[_to] + _value < balanceOf[_to]) throw; // Check for overflows
        balanceOf[msg.sender] -= _value;                     // Subtract from the sender
        balanceOf[_to] += _value;                            // Add the same to the recipient
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.