From 111c966c1eb256a97998069d99c7ac9ff94283ac Mon Sep 17 00:00:00 2001 From: poma Date: Fri, 1 Nov 2019 04:15:55 +0300 Subject: [PATCH] add assert on denomination --- contracts/Mixer.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/Mixer.sol b/contracts/Mixer.sol index b16383c..d21e85d 100644 --- a/contracts/Mixer.sol +++ b/contracts/Mixer.sol @@ -53,6 +53,7 @@ contract Mixer is MerkleTreeWithHistory { uint256 _emptyElement, address _operator ) MerkleTreeWithHistory(_merkleTreeHeight, _emptyElement) public { + require(_denomination > 0, "denomination should be greater than 0"); verifier = _verifier; operator = _operator; denomination = _denomination;