Skip to content
Verified contractPartial

Wallet

Address0x8e3db0875a5a0376baa37f2fa4527b08c8d1e637
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.5.5

 

Same code

9,191 more contracts

 

Details

Compiler
solc 0.5.5+commit.47a71e8f
Language
solidity
Optimization
Yes, 200 runs
EVM version
byzantium
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
8,945,667
Creation transaction
0x54deb3dce6…b54e646a39
Main copy (most transactions)
0xc5458e43…fc7942b1

Wallet.sol

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

contract Token {
    function transfer(address to, uint256 value) public returns (bool);
}

contract Wallet {
    address payable owner;

    event DepositFrom(address from, uint256 value);

    constructor() public {
        owner = msg.sender;
    }

    function () external payable {
        require(msg.data.length == 0);
        owner.transfer(msg.value);
        emit DepositFrom(msg.sender, msg.value);
    }

    function getOwner() public view returns (address) {
        return owner;
    }

    function flushTokens(address token, uint256 amount) public {
        require(msg.sender == owner);
        Token t = Token(token);
        t.transfer(owner, amount);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "byzantium"
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.