This commit is contained in:
poma 2020-12-15 22:39:34 +03:00
parent 5a1baed66b
commit 43c0606472
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
3 changed files with 10 additions and 6 deletions

@ -2,7 +2,7 @@
build
circuits
scripts
contracts/RewardVerifier.sol
contracts/WithdrawVerifier.sol
contracts/TreeUpdateVerifier.sol
contracts/FloatMath.sol
contracts/verifiers/RewardVerifier.sol
contracts/verifiers/WithdrawVerifier.sol
contracts/verifiers/TreeUpdateVerifier.sol
contracts/utils/FloatMath.sol

@ -35,7 +35,11 @@ contract TornadoProxy is EnsResolve {
}
}
function deposit(ITornadoInstance _tornado, bytes32 _commitment, bytes calldata _encryptedNote) external payable {
function deposit(
ITornadoInstance _tornado,
bytes32 _commitment,
bytes calldata _encryptedNote
) external payable {
require(instances[_tornado], "The instance is not supported");
_tornado.deposit{ value: msg.value }(_commitment);

@ -88,7 +88,7 @@ contract MerkleTreeWithHistory {
break;
}
if(subtrees[i] == bytes32(0)) {
if (subtrees[i] == bytes32(0)) {
subtrees[i] = filledSubtrees[i];
}
currentLevelHash = hashLeftRight(subtrees[i], currentLevelHash);