add assert on denomination

This commit is contained in:
poma 2019-11-01 04:15:55 +03:00
parent 02e76a1ce6
commit 111c966c1e

View File

@ -53,6 +53,7 @@ contract Mixer is MerkleTreeWithHistory {
uint256 _emptyElement, uint256 _emptyElement,
address _operator address _operator
) MerkleTreeWithHistory(_merkleTreeHeight, _emptyElement) public { ) MerkleTreeWithHistory(_merkleTreeHeight, _emptyElement) public {
require(_denomination > 0, "denomination should be greater than 0");
verifier = _verifier; verifier = _verifier;
operator = _operator; operator = _operator;
denomination = _denomination; denomination = _denomination;