Verified contractPartial
Forwarder
Address0x552f99bda66d43de8715b191c01665adf2d135ba
- Balance
0 ETH
- Transactions
778
- Compiler
solc 0.4.24
- Same code
20 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: no, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,831,960
- Creation transaction
- 0x13849d01ec…a4da2fa372
Forwarder.sol
// Submitted by EthereumHistory (ethereumhistory.com)
pragma solidity ^0.4.24;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address _newOwner) public onlyOwner {
_transferOwnership(_newOwner);
}
function _transferOwnership(address _newOwner) internal {
require(_newOwner != address(0));
emit OwnershipTransferred(owner, _newOwner);
owner = _newOwner;
}
}
contract Forwarder is Ownable {
event Deposit(address indexed to, address indexed from, uint256 value);
function () public payable {
if (owner.call.value(msg.value)()) {
emit Deposit(msg.sender, owner, msg.value);
} else {
revert();
}
}
function contractCall(address _target, bytes _data) public payable onlyOwner {
require(_target.call.value(msg.value)(_data));
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.