Cleanup and readme

simplify bootstrap
This commit is contained in:
2019-03-24 15:40:46 +01:00
parent 0d9b2d7d58
commit b03095e149
18 changed files with 1287 additions and 16687 deletions

View File

@@ -1,4 +1,4 @@
pragma solidity ^0.4.4;
pragma solidity ^0.4.24;
contract Migrations {
address public owner;
@@ -8,15 +8,15 @@ contract Migrations {
if (msg.sender == owner) _;
}
function Migrations() {
constructor() public {
owner = msg.sender;
}
function setCompleted(uint completed) restricted {
function setCompleted(uint completed) public restricted {
last_completed_migration = completed;
}
function upgrade(address new_address) restricted {
function upgrade(address new_address) public restricted {
Migrations upgraded = Migrations(new_address);
upgraded.setCompleted(last_completed_migration);
}