Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
RevertReason
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-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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
608060405234801561001057600080fd5b506102b8806100206000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063017fa51d1461005c5780632bf7d2791461009f578063ffae399e146100e2575b600080fd5b34801561006857600080fd5b50610089600480360381019080803515159060200190929190505050610111565b6040518082815260200191505060405180910390f35b3480156100ab57600080fd5b506100cc600480360381019080803515159060200190929190505050610192565b6040518082815260200191505060405180910390f35b3480156100ee57600080fd5b5061010f600480360381019080803515159060200190929190505050610213565b005b600081151515610189576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b602a9050919050565b60008115151561020a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b602a9050919050565b80151515610289576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b505600a165627a7a723058206909ffb622d63380852eef480768c372391a474691edc9bad6e19e0bc7e8c9970029
Deployed Bytecode
0x608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063017fa51d1461005c5780632bf7d2791461009f578063ffae399e146100e2575b600080fd5b34801561006857600080fd5b50610089600480360381019080803515159060200190929190505050610111565b6040518082815260200191505060405180910390f35b3480156100ab57600080fd5b506100cc600480360381019080803515159060200190929190505050610192565b6040518082815260200191505060405180910390f35b3480156100ee57600080fd5b5061010f600480360381019080803515159060200190929190505050610213565b005b600081151515610189576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b602a9050919050565b60008115151561020a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b602a9050919050565b80151515610289576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f536869742069742072657665727465642100000000000000000000000000000081525060200191505060405180910390fd5b505600a165627a7a723058206909ffb622d63380852eef480768c372391a474691edc9bad6e19e0bc7e8c9970029
Swarm Source
bzzr://6909ffb622d63380852eef480768c372391a474691edc9bad6e19e0bc7e8c997
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.