Verified contractPartial
mortal
Address0x251b3569ecabaeeb32ca58e2dfc682a2283ee8d4
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.8
- Same code
3 more contracts
Details
- Compiler
- solc 0.4.8+commit.60cc1668
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 3,606,481
- Creation transaction
- 0x6b5e7be998…8e8b5d2a57
mortal.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity 0.4.8;
contract mortal {
/* Define variable owner of the type address*/
address owner;
/* this function is executed at initialization and sets the owner of the contract */
function mortal() { owner = msg.sender; }
/* Function to recover the funds on the contract */
function kill() { if (msg.sender == owner) selfdestruct(owner); }
}
contract greeter is mortal {
/* define variable greeting of the type string */
string greeting;
/* this runs when the contract is executed */
function greeter(string _greeting) public {
greeting = _greeting;
}
/* main function */
function greet() constant returns (string) {
return greeting;
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.