rearrange folders

This commit is contained in:
Manuel Araoz
2017-01-16 17:23:28 -03:00
parent ac6f9288a8
commit ca8f2f2362
24 changed files with 11 additions and 225 deletions

View File

@ -0,0 +1,18 @@
pragma solidity ^0.4.4;
import '../ownership/Ownable.sol';
contract Migrations is Ownable {
uint public lastCompletedMigration;
function setCompleted(uint completed) onlyOwner {
lastCompletedMigration = completed;
}
function upgrade(address newAddress) onlyOwner {
Migrations upgraded = Migrations(newAddress);
upgraded.setCompleted(lastCompletedMigration);
}
}