isSpent function

This commit is contained in:
poma 2019-07-15 19:15:06 +03:00
parent eb75bab81b
commit 8657bc8b82

View File

@ -69,4 +69,8 @@ contract Mixer is MerkleTreeWithHistory {
}
emit Withdraw(receiver, nullifier, fee);
}
function isSpent(uint256 nullifier) public view returns(bool) {
return nullifiers[nullifier];
}
}