mirror of
https://github.com/status-im/visual-identity.git
synced 2025-02-21 08:48:25 +00:00
25 lines
520 B
Solidity
25 lines
520 B
Solidity
|
pragma solidity ^0.4.17;
|
||
|
|
||
|
import "./Instance.sol";
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @title UpdatableInstance
|
||
|
* @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
|
||
|
* @dev Contract that can be updated by a call from itself.
|
||
|
*/
|
||
|
contract UpdatableInstance is Instance {
|
||
|
|
||
|
function UpdatableInstance(address _kernel)
|
||
|
Instance(_kernel)
|
||
|
public
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
function updateUpdatableInstance(address _kernel) external {
|
||
|
require(msg.sender == address(this));
|
||
|
kernel = _kernel;
|
||
|
}
|
||
|
|
||
|
}
|