mirror of
https://github.com/tornadocash/tornado-anonymity-mining.git
synced 2024-11-22 01:37:08 +01:00
lint
This commit is contained in:
parent
5a1baed66b
commit
43c0606472
@ -2,7 +2,7 @@
|
|||||||
build
|
build
|
||||||
circuits
|
circuits
|
||||||
scripts
|
scripts
|
||||||
contracts/RewardVerifier.sol
|
contracts/verifiers/RewardVerifier.sol
|
||||||
contracts/WithdrawVerifier.sol
|
contracts/verifiers/WithdrawVerifier.sol
|
||||||
contracts/TreeUpdateVerifier.sol
|
contracts/verifiers/TreeUpdateVerifier.sol
|
||||||
contracts/FloatMath.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");
|
require(instances[_tornado], "The instance is not supported");
|
||||||
|
|
||||||
_tornado.deposit{ value: msg.value }(_commitment);
|
_tornado.deposit{ value: msg.value }(_commitment);
|
||||||
|
@ -88,7 +88,7 @@ contract MerkleTreeWithHistory {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(subtrees[i] == bytes32(0)) {
|
if (subtrees[i] == bytes32(0)) {
|
||||||
subtrees[i] = filledSubtrees[i];
|
subtrees[i] = filledSubtrees[i];
|
||||||
}
|
}
|
||||||
currentLevelHash = hashLeftRight(subtrees[i], currentLevelHash);
|
currentLevelHash = hashLeftRight(subtrees[i], currentLevelHash);
|
||||||
|
Loading…
Reference in New Issue
Block a user