Created
April 13, 2017 05:51
-
-
Save iisaint/7a0f93a9d3e5dc0bf10ddd2c92af576e to your computer and use it in GitHub Desktop.
OracleResolver.sol for My Oracle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.10; | |
contract OracleResolver { | |
address owner; | |
address public oracleAddress; | |
function OracleResolver() { | |
owner = msg.sender; | |
} | |
modifier onlyOwner { | |
if (msg.sender != owner) throw; | |
_; | |
} | |
function setOracleAddress(address _addr) onlyOwner { | |
oracleAddress = _addr; | |
} | |
function getOracleAddress() constant returns(address) { | |
return oracleAddress; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment