Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 6360954 | 2246 days ago | IN | 0 ETH | 0.00274577 |
Loading...
Loading
Contract Name:
ErrorReporter
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *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
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"reason","type":"string"}],"name":"report","outputs":[],"payable":false,"stateMutability":"pure","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061017d806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063f616b7b714610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156101165780820151818401526020810190506100fb565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd00a165627a7a72305820295b6837fe1b4f7e0c56f2747bf17bc67faca9ce7e6d9dfa3bb064c5cd9c24fb0029
Deployed Bytecode
0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063f616b7b714610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156101165780820151818401526020810190506100fb565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd00a165627a7a72305820295b6837fe1b4f7e0c56f2747bf17bc67faca9ce7e6d9dfa3bb064c5cd9c24fb0029
Swarm Source
bzzr://295b6837fe1b4f7e0c56f2747bf17bc67faca9ce7e6d9dfa3bb064c5cd9c24fb
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.