//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.22; contract DeadSwitch { address creator; // This will be the address of SecondContract. constructor() public { creator = msg.sender; // Which we set here. } modifier onlyCreator() { require(msg.sender == creator); // If it is incorrect here, it reverts. _; // Otherwise, it continues. } function set(uint _value) public onlyCreator { value = _value; } function get() public constant returns (uint) { return value; } uint value; }
0.4.22