ETH Price: $3,171.72 (-2.50%)

Contract

0x376C128Eb3d734912dE09f6AD9a8609E3F87E13F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Should Revert63539782018-09-18 10:50:452248 days ago1537267845IN
0x376C128E...E3F87E13F
0 ETH0.000174738
0x6080604063539642018-09-18 10:47:062248 days ago1537267626IN
 Create: RevertReason
0 ETH0.001841918

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

Contract Source Code Verified (Exact Match)

Contract Name:
RevertReason

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-18
*/

pragma solidity 0.4.25;

contract RevertReason {
    function shouldRevert(bool yes) public {
        require(!yes, "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 Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"yes","type":"bool"}],"name":"shouldRevertPure","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"yes","type":"bool"}],"name":"shouldRevertWithReturn","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"yes","type":"bool"}],"name":"shouldRevert","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506102b8806100206000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063017fa51d1461005c5780632bf7d2791461009f578063ffae399e146100e2575b600080fd5b34801561006857600080fd5b50610089600480360381019080803515159060200190929190505050610111565b6040518082815260200191505060405180910390f35b3480156100ab57600080fd5b506100cc600480360381019080803515159060200190929190505050610192565b6040518082815260200191505060405180910390f35b3480156100ee57600080fd5b5061010f600480360381019080803515159060200190929190505050610213565b005b600081151515610189576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b602a9050919050565b60008115151561020a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b602a9050919050565b80151515610289576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b505600a165627a7a723058206909ffb622d63380852eef480768c372391a474691edc9bad6e19e0bc7e8c9970029

Deployed Bytecode

0x608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063017fa51d1461005c5780632bf7d2791461009f578063ffae399e146100e2575b600080fd5b34801561006857600080fd5b50610089600480360381019080803515159060200190929190505050610111565b6040518082815260200191505060405180910390f35b3480156100ab57600080fd5b506100cc600480360381019080803515159060200190929190505050610192565b6040518082815260200191505060405180910390f35b3480156100ee57600080fd5b5061010f600480360381019080803515159060200190929190505050610213565b005b600081151515610189576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b602a9050919050565b60008115151561020a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b602a9050919050565b80151515610289576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b505600a165627a7a723058206909ffb622d63380852eef480768c372391a474691edc9bad6e19e0bc7e8c9970029

Swarm Source

bzzr://6909ffb622d63380852eef480768c372391a474691edc9bad6e19e0bc7e8c997

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.