Created
March 30, 2017 12:07
-
-
Save pau1m/9c7103842e51f1c87fef4e3add86bd07 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
contract Relay { | |
address public currentVersion; | |
address public owner; | |
function Relay(address initAddr){ | |
currentVersion = initAddr; | |
owner = msg.sender; | |
} | |
function update(address newAddress){ | |
if(msg.sender != owner) throw; | |
currentVersion = newAddress; | |
} | |
function(){ | |
if(!currentVersion.delegatecall(msg.data)) throw; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment