In Migrations contract you can avoid code duplication:
import Ownable contract to Migrations contract, add inheritance:
contract Migrations is Ownable
and then remove:
address public owner;
modifier restricted() {
if (msg.sender == owner) _;
}
function Migrations() {
owner = msg.sender;
}
then instead of marking function "restricted", you can use "onlyOwner" to avoid code duplication.
@pauliax
ETH address: 0xaAbf60384137D460427fD5B849017e59479797A1
In Migrations contract you can avoid code duplication: import Ownable contract to Migrations contract, add inheritance: contract Migrations is Ownable and then remove:
then instead of marking function "restricted", you can use "onlyOwner" to avoid code duplication.
@pauliax ETH address: 0xaAbf60384137D460427fD5B849017e59479797A1