Skip to content
Verified contractPartial

Test

Address0x2cbbf3f492215ecb7acf2172954b9f24b86174c0
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.1.6

 

Same code

1 more contract

 

Details

Compiler
solc 0.1.6+commit.d41f8b7c
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
505,613
Creation transaction
0xfaf1854027…6532555572

Test.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Test {    address owner;
    function Test() {
        owner = msg.sender;
    }
    function log() returns (address) {
        address a = parseAddr("036421f6eca2ef7a43ce0af4a150b933afb3cf0764323b8ff9ebfd4935fd86d436");
        return a;
    }
    function log2() returns (bytes32) {
        bytes32 a = bytes32(parseAddr("73a461ce418e9e483f13a98c0cba5cddf07f647ea1d6ba2e88d494dfcd411c9c"));
        return a;
    }

    function test() returns (address) {
        address a = parseAddr("036421f6eca2ef7a43ce0af4a150b933afb3cf0764323b8ff9ebfd4935fd86d436");
        byte v = byte(parseAddr("20"));
        bytes32 r = bytes32(parseAddr("0b7effb7704f726bc64139753dc2d0a3929af2309dd2930ad7a722f5b214cf6e"));
        bytes32 s = bytes32(parseAddr("73a461ce418e9e483f13a98c0cba5cddf07f647ea1d6ba2e88d494dfcd411c9c"));
        bytes32 h = bytes32(parseAddr("58e2f335bbd6f2b0da93eae19342e7309654fbfeed9a214a1e5d835ac09cc226"));
        return ecrecover(h, uint8(v), r, s);
    }
    function parseAddr(string _a) returns (address) {
        bytes memory tmp = bytes(_a);
        uint160 iaddr = 0;
        uint160 b1;
        uint160 b2;
        for (uint i = 2; i < 2+2*20; i += 2) {
            iaddr *= 256;
            b1 = uint160(tmp[i]);
            b2 = uint160(tmp[i+1]);
            if ((b1 >= 97) && (b1 <= 102)) b1 -= 87;
            else if ((b1 >= 48) && (b1 <= 57)) b1 -= 48;
            if ((b2 >= 97) && (b2 <= 102)) b2 -= 87;
            else if ((b2 >= 48) && (b2 <= 57)) b2 -= 48;
            iaddr += (b1 * 16 + b2);
        }
        return address(iaddr);
    }
    function kill() {
        if (msg.sender == owner) suicide(msg.sender);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.