add pause account setter

This commit is contained in:
Roman Storm 2019-08-01 09:58:34 -07:00
parent e116dcee67
commit 3b03a5ea4c
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ contract Mixer is MerkleTreeWithHistory {
isDepositsEnabled = !isDepositsEnabled;
}
function setPauseAccount(address _newAccount) external {
require(msg.sender == pauseAccount, "unauthorized");
pauseAccount = _newAccount;
}
function isSpent(uint256 nullifier) public view returns(bool) {
return nullifierHashes[nullifier];
}