Skip to content
Verified contractPartial

MyTokenPublic

Address0xc142a9504e06006ef885b5f1681a8621c0a0a7d7
Balance

0 ETH

 

Transactions

4

 

Compiler

solc 0.5.11

 

Same code

1 more contract

 

Details

Compiler
solc 0.5.11+commit.22be8592
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
8,801,407
Creation transaction
0x4ce86099f7…4a3a0cb947

MyTokenPublic.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity 0.5.11;

contract MyTokenPublic{
    
    mapping (address => uint256) public balanceOf;
    
    constructor (uint256 initialSupply)  public {
        balanceOf[msg.sender] = initialSupply;
    }
    
    function transfer(address _to,uint256 _value) public {
        
        require(balanceOf[msg.sender] >= _value);
        
        require(balanceOf[_to] + _value >= balanceOf[_to]);
        
        balanceOf[msg.sender] -= _value;
        
        balanceOf[_to] += _value;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.