-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
3,182 additions
and
1,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "8" | ||
|
||
- '8' | ||
cache: | ||
directories: | ||
- "node_modules" | ||
- node_modules | ||
env: | ||
- | ||
- SOLIDITY_COVERAGE=true | ||
- | ||
- SOLIDITY_COVERAGE=true | ||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- env: SOLIDITY_COVERAGE=true | ||
- env: SOLIDITY_COVERAGE=true | ||
before_script: | ||
- truffle version | ||
- truffle version | ||
script: | ||
#- npm run lint | ||
#- npm run lint:sol | ||
- npm run test | ||
- npm run test | ||
notifications: | ||
slack: | ||
secure: W4FZSabLrzF74f317hutolEHnlq2GBlQxU6b85L5XymrjgLEhlgE16c5Qz7Emoyt6le6PXL+sfG2ujJc3XYys/6hppgrHSAasuJnKCdQNpmMZ9BNyMs6WGkmB3enIf3K/FLXb26AQdwpQdIXuOeJUTf879u+YoiZV0eZH8d3+fsIOyovq9N6X5pKOpDM9iT8gGB4t7fie7xf51s+iUaHxyO9G7jDginZ4rBXHcU7mxCub9z+Z1H8+kCTnPWaF+KKVEXx4Z0nI3+urboD7E4OIP02LwrThQls2CppA3X0EoesTcdvj/HLErY/JvsXIFiFEEHZzB1Wi+k2TiOeLcYwEuHIVij+HPxxlJNX/j8uy01Uk8s4rd+0EhvfdKHJqUKqxH4YN2npcKfHEss7bU3y7dUinXQfYShW5ZewHdvc7pnnxBTfhvmdi64HdNrXAPq+s1rhciH7MmnU+tsm4lhrpr+FBuHzUMA9fOCr7b0SQytZEgWpiUls88gdbh3yG8TjyZxmZJGx09cwEP0q7VoH0UwFh7mIu5XmYdd5tWUhavTiO7YV8cUPn7MvwMsTltB3YBpF/fB26L7ka8zBhCsjm9prW6SVYU/dyO3m91VeZtO/zJFHRDA6Q58JGVW2rgzO39z193qC1EGRXqTie96VwAAtNg8+hRb+bI/CWDVzSPc= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
pragma solidity ^0.4.18; | ||
pragma solidity ^0.4.21; | ||
|
||
|
||
contract Migrations { | ||
address public owner; | ||
uint public last_completed_migration; | ||
|
||
modifier restricted() { | ||
require (msg.sender == owner); | ||
_; | ||
} | ||
address public owner; | ||
|
||
uint public lastCompletedMigration; | ||
|
||
modifier restricted() { | ||
require(msg.sender == owner); | ||
_; | ||
} | ||
|
||
function Migrations() public { | ||
owner = msg.sender; | ||
} | ||
function Migrations() public { | ||
owner = msg.sender; | ||
} | ||
|
||
function setCompleted(uint completed)public restricted { | ||
last_completed_migration = completed; | ||
} | ||
function setCompleted(uint _completed)public restricted { | ||
lastCompletedMigration = _completed; | ||
} | ||
|
||
function upgrade(address new_address)public restricted { | ||
Migrations upgraded = Migrations(new_address); | ||
upgraded.setCompleted(last_completed_migration); | ||
} | ||
function upgrade(address _newAddress)public restricted { | ||
Migrations upgraded = Migrations(_newAddress); | ||
upgraded.setCompleted(lastCompletedMigration); | ||
} | ||
} |
Oops, something went wrong.