Verified contractPartial
Wallet
Address0xb7fa5e4b42ac0dd76e2a685d45e3905ff58293a2
- Balance
0 ETH
- Transactions
11
- Compiler
solc 0.4.21
- Same code
249 more contracts
Details
- Compiler
- solc 0.4.21+commit.dfe3193c
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 8,090,510
- Creation transaction
- 0x87dc6476ac…1ebeb84b6a
Wallet.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.18;
contract ERC20 {
function transfer(address to, uint256 value) public returns (bool);
}
contract Wallet {
address public owner = msg.sender;
event TokenReceived(address indexed token, uint256 amount);
function () public payable { }
function sendCoins(address token, address to, uint256 amount) public returns (bool) {
require(msg.sender == owner);
ERC20(token).transfer(to, amount);
TokenReceived(token, amount);
return true;
}
function receiveEther(address to, uint256 amount) public returns (bool) {
require(msg.sender == owner);
to.transfer(amount);
return true;
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.