ETH Price: $3,173.13 (-3.44%)

Contract

0xE057dB726b794688b1b976ccF98B970bdBEAbC8a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x6080604063609542018-09-19 14:23:002246 days ago1537366980IN
 Create: ErrorReporter
0 ETH0.0027457718

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ErrorReporter

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-09-19
*/

pragma solidity 0.4.25;

contract RevertReason {
    
    ErrorReporter error;
    
    constructor(address _error) public {
        error = ErrorReporter(_error);
    }
    
    function shouldRevert(bool yes) public {
        if (yes) {
            error.report("Shit it reverted!");
        }
    }
    
    function shouldRevertWithReturn(bool yes) public returns (uint256) {
        require(!yes, "Shit it reverted!");
        return 42;
    }
    
    function shouldRevertPure(bool yes) public pure returns (uint256) {
        require(!yes, "Shit it reverted!");
        return 42;
    }
}


contract ErrorReporter {
    function report(string reason) public pure {
        revert(reason);
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"reason","type":"string"}],"name":"report","outputs":[],"payable":false,"stateMutability":"pure","type":"function"}]

608060405234801561001057600080fd5b5061017d806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063f616b7b714610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156101165780820151818401526020810190506100fb565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd00a165627a7a72305820295b6837fe1b4f7e0c56f2747bf17bc67faca9ce7e6d9dfa3bb064c5cd9c24fb0029

Deployed Bytecode

0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063f616b7b714610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156101165780820151818401526020810190506100fb565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd00a165627a7a72305820295b6837fe1b4f7e0c56f2747bf17bc67faca9ce7e6d9dfa3bb064c5cd9c24fb0029

Swarm Source

bzzr://295b6837fe1b4f7e0c56f2747bf17bc67faca9ce7e6d9dfa3bb064c5cd9c24fb

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.