init
This commit is contained in:
18
todofeed/backend-todofeed/contracts/Migrations.sol
Normal file
18
todofeed/backend-todofeed/contracts/Migrations.sol
Normal file
@@ -0,0 +1,18 @@
|
||||
pragma solidity >=0.4.21 <0.7.0;
|
||||
|
||||
contract Migrations {
|
||||
address public owner;
|
||||
uint public last_completed_migration;
|
||||
|
||||
constructor() public {
|
||||
owner = msg.sender;
|
||||
}
|
||||
|
||||
modifier restricted() {
|
||||
if (msg.sender == owner) _;
|
||||
}
|
||||
|
||||
function setCompleted(uint completed) public restricted {
|
||||
last_completed_migration = completed;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user