Skip to content

Commit

Permalink
Lock/Unlock for admin functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mazaletskiy committed Dec 18, 2018
1 parent bbe3e29 commit 434aab0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/token/AkropolisToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ contract AkropolisToken is AkropolisBaseToken, Pausable, Lockable {

/** Functions **/

function mint(address _to, uint256 _amount) public whenNotPaused {
function mint(address _to, uint256 _amount) public whenUnlocked {
super.mint(_to, _amount);
}

function burn(uint256 _amount) public whenNotPaused {
function burn(uint256 _amount) public whenUnlocked {
super.burn(_amount);
}

Expand All @@ -35,7 +35,7 @@ contract AkropolisToken is AkropolisBaseToken, Pausable, Lockable {
* Upon construction, all calls to approve() will revert unless this contract owner explicitly unlocks approve()
*/
function approve(address _spender, uint256 _value)
public whenNotPaused whenUnlocked returns (bool) {
public whenNotPaused returns (bool) {
super.approve(_spender, _value);
}

Expand Down

0 comments on commit 434aab0

Please sign in to comment.