Verified contractPartial
SimpleWallet
Address0xd655c73da2faa27d3217f669b714fc7d07487869
- Balance
0 ETH
- Transactions
18
- Compiler
solc 0.4.11
- Same code
20 more contracts
Details
- Compiler
- solc 0.4.11+commit.68ef5810
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,215,673
- Creation transaction
- 0x25b444829f…3f6ead4a9b
- Main copy (most transactions)
- 0xa60dc0b1…e0a13470
b1d627ee390ad0b83dc10a3ff9ca2df55b0cbb45_SimpleWallet.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
/**
*Submitted for verification at Etherscan.io on 2022-07-30
*/
/**
*Submitted for verification at Etherscan.io on 2017-10-30
*/
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/
function transferOwnership(address newOwner) onlyOwner public {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
contract SimpleWallet is Ownable {
function () public payable {
}
function weiBalance() public constant returns(uint256) {
return this.balance;
}
function claim(address destination) public onlyOwner {
destination.transfer(this.balance);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.