Verified contractPartial
TestCoin
Address0x04b99ae45176955165ba8eb655b9028fc00dfe50
- Balance
0 ETH
- Transactions
730
- Compiler
solc 0.4.16
- Same code
163 more contracts
Details
- Compiler
- solc 0.4.16+commit.d7661dd9
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: no, runtime code: yes
- Verified on Sourcify
- Created in block
- 4,190,915
- Creation transaction
- 0xdbdd0038cf…6764b79d8c
TestCoin.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.16;
contract TestCoin {
string public name;
string public symbol;
uint8 public decimals;
event Transfer(address indexed from, address indexed to, uint256 value);
/* 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 TestCoin() {
balanceOf[msg.sender] = 4000000; // Give the creator all initial tokens
name = "TestCoin"; // Set the name for display purposes
symbol = "TEST"; // Set the symbol for display purposes
decimals = 2; // Amount of decimals for display purposes
}
/* Send coins */
function transfer(address _to, uint256 _value) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
require(balanceOf[_to] + _value >= balanceOf[_to]); // Check for overflows
balanceOf[msg.sender] -= _value; // Subtract from the sender
balanceOf[_to] += _value; // Add the same to the recipient
/* Notify anyone listening that this transfer took place */
Transfer(msg.sender, _to, _value);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.