diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-02-06 05:02:48 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-02-07 09:26:12 +0800 |
commit | 897515c00207a11f7a45932d3c526a5eaf961635 (patch) | |
tree | 9282ffabd4242c73af49154fa963ebc3378bd935 /packages/contracts/src/current/utils/Ownable | |
parent | 4c9c4c487a034d926443eeb8a0154fd38c97aca3 (diff) | |
download | dexon-sol-tools-897515c00207a11f7a45932d3c526a5eaf961635.tar dexon-sol-tools-897515c00207a11f7a45932d3c526a5eaf961635.tar.gz dexon-sol-tools-897515c00207a11f7a45932d3c526a5eaf961635.tar.bz2 dexon-sol-tools-897515c00207a11f7a45932d3c526a5eaf961635.tar.lz dexon-sol-tools-897515c00207a11f7a45932d3c526a5eaf961635.tar.xz dexon-sol-tools-897515c00207a11f7a45932d3c526a5eaf961635.tar.zst dexon-sol-tools-897515c00207a11f7a45932d3c526a5eaf961635.zip |
Add CLI option for networkId, add abi-gen to contracts package
Diffstat (limited to 'packages/contracts/src/current/utils/Ownable')
-rw-r--r-- | packages/contracts/src/current/utils/Ownable/Ownable.sol | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/packages/contracts/src/current/utils/Ownable/Ownable.sol b/packages/contracts/src/current/utils/Ownable/Ownable.sol deleted file mode 100644 index 9b3d6b9cf..000000000 --- a/packages/contracts/src/current/utils/Ownable/Ownable.sol +++ /dev/null @@ -1,32 +0,0 @@ -pragma solidity ^0.4.18; - -/* - * Ownable - * - * Base contract with an owner. - * Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner. - */ - -contract Ownable { - address public owner; - - function Ownable() - public - { - owner = msg.sender; - } - - modifier onlyOwner() { - require(msg.sender == owner); - _; - } - - function transferOwnership(address newOwner) - public - onlyOwner - { - if (newOwner != address(0)) { - owner = newOwner; - } - } -} |