22 lines
544 B
Solidity
22 lines
544 B
Solidity
pragma solidity ^0.4.18;
|
|
|
|
import "../ownership/Ownable.sol";
|
|
|
|
|
|
/**
|
|
* @title Migrations
|
|
* @dev This is a truffle contract, needed for truffle integration, not meant for use by Zeppelin users.
|
|
*/
|
|
contract Migrations is Ownable {
|
|
uint256 public lastCompletedMigration;
|
|
|
|
function setCompleted(uint256 completed) onlyOwner public {
|
|
lastCompletedMigration = completed;
|
|
}
|
|
|
|
function upgrade(address newAddress) onlyOwner public {
|
|
Migrations upgraded = Migrations(newAddress);
|
|
upgraded.setCompleted(lastCompletedMigration);
|
|
}
|
|
}
|