Verified contractPartial
Wallet
Address0x1f35b19ee9faf8d821d1d52e7ffab6e8b0f7c2cb
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.25
- Same code
84,655 more contracts
Details
- Compiler
- solc 0.4.25+commit.59dbf8f1
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,113,102
- Creation transaction
- 0x4b62f812da…91118b7ea4
- Main copy (most transactions)
- 0xb5ec780e…6e00e438
Wallet.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.24;
contract Token {
function transfer(address to, uint256 value) public returns (bool);
}
contract Wallet {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function () public payable {
}
function setOwner(address _owner) public onlyOwner {
owner = _owner;
}
function transferMain(uint256 amount) public onlyOwner {
if (amount > 0) {
owner.transfer(amount);
}
}
function transfer(address token, uint256 amount) public onlyOwner {
if (amount > 0) {
bool success = Token(token).transfer(owner, amount);
require(success);
}
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.