allow fee equal to denomination

This commit is contained in:
poma 2019-11-01 03:54:29 +03:00
parent bc134bbfe8
commit bec65f217f
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ contract Mixer is MerkleTreeWithHistory {
address payable relayer = address(input[3]);
uint256 fee = input[4];
uint256 refund = input[5];
require(fee < denomination, "Fee exceeds transfer value");
require(fee <= denomination, "Fee exceeds transfer value");
require(!nullifierHashes[nullifierHash], "The note has been already spent");
require(isKnownRoot(root), "Cannot find your merkle root"); // Make sure to use a recent one