mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-10-01 01:06:17 -04:00
add assert on denomination
This commit is contained in:
parent
02e76a1ce6
commit
111c966c1e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user