Skip to content
Verified contractPartial

Relay

Address0x44dc67bd6fc494a8740a8aa8e8dc2b91d8468878
Balance

0 ETH

 

Transactions

2

 

Compiler

solc 0.4.8

 

Same code

223 more contracts

 

Details

Compiler
solc 0.4.8+commit.60cc1668
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
2,906,123
Creation transaction
0x37fbb19d05…31542e4167

Relay.sol

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

contract Relay {
    address owner;
    address target;
    bytes4 sig;

    function Relay(address _target, bytes4 _sig) {
        owner = msg.sender;
        target = _target;
        sig = _sig;
    }

    function () payable {
        if (msg.sender != owner) throw;
        if (!target.call(sig)) throw;
        if (msg.value > 0) {
            if (!target.send(msg.value)) throw;
        }
    }

    function transferOwner(address newOwner) {
        owner = newOwner;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.