From 4df9a516db50d4e4dcff8347a4e72c6da41a8675 Mon Sep 17 00:00:00 2001 From: poma Date: Fri, 5 Feb 2021 02:16:40 +0300 Subject: [PATCH] fix --- contracts/TornadoTrees.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/TornadoTrees.sol b/contracts/TornadoTrees.sol index 6dc0096..97cf5ac 100644 --- a/contracts/TornadoTrees.sol +++ b/contracts/TornadoTrees.sol @@ -79,12 +79,13 @@ contract TornadoTrees is EnsResolve { uint256 depositLeaf = _tornadoTreesV1.lastProcessedDepositLeaf(); require(depositLeaf % CHUNK_SIZE == 0, "Incorrect TornadoTrees state"); lastProcessedDepositLeaf = depositLeaf; - lastV1Deposit = 1; // todo + depositsLength = lastV1Deposit = 1; // todo + uint256 withdrawalLeaf = _tornadoTreesV1.lastProcessedWithdrawalLeaf(); require(withdrawalLeaf % CHUNK_SIZE == 0, "Incorrect TornadoTrees state"); lastProcessedWithdrawalLeaf = withdrawalLeaf; - lastV1Withdrawal = 1; // todo + withdrawalsLength = lastV1Withdrawal = 1; // todo } function registerDeposit(address _instance, bytes32 _commitment) external onlyTornadoProxy {