add assert on denomination
This commit is contained in:
parent
02e76a1ce6
commit
111c966c1e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue