* Update to ganache-cli v6.1.0 and truffle v4.1.0 * Update to stable version of ganache-cli * fix: update event emission warning - Fix event emission warnings for solidity 4.21 after truffle has been updated to use this version * fix pr review comments * update to truffle v4.1.5 * update package-lock * add additional emit keywords * update solidity-coverage to 0.4.15 * update to solium 1.1.6 * fix MerkleProof coverage analysis by testing through wrapper * change version pragma to ^0.4.21 * fix solium linting errors
22 lines
544 B
Solidity
22 lines
544 B
Solidity
pragma solidity ^0.4.21;
|
|
|
|
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);
|
|
}
|
|
}
|