add assert on denomination

This commit is contained in:
poma 2019-11-01 04:15:55 +03:00
parent 02e76a1ce6
commit 111c966c1e
1 changed files with 1 additions and 0 deletions

View File

@ -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;