diff --git a/.prettierignore b/.prettierignore index 00c0ae1..b4a1091 100644 --- a/.prettierignore +++ b/.prettierignore @@ -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 diff --git a/contracts/TornadoProxy.sol b/contracts/TornadoProxy.sol index b64dde9..12a34ad 100644 --- a/contracts/TornadoProxy.sol +++ b/contracts/TornadoProxy.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); diff --git a/contracts/utils/MerkleTreeWithHistory.sol b/contracts/utils/MerkleTreeWithHistory.sol index af6a3ca..e915184 100644 --- a/contracts/utils/MerkleTreeWithHistory.sol +++ b/contracts/utils/MerkleTreeWithHistory.sol @@ -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);