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

View File

@ -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

View File

@ -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);