From 9321740be7cacbb41673504457db3ef11165e3a3 Mon Sep 17 00:00:00 2001 From: poma Date: Sun, 21 Mar 2021 00:45:14 +0300 Subject: [PATCH] add events --- contracts/TornadoTrees.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/TornadoTrees.sol b/contracts/TornadoTrees.sol index 06671ca..061ef79 100644 --- a/contracts/TornadoTrees.sol +++ b/contracts/TornadoTrees.sol @@ -36,6 +36,8 @@ contract TornadoTrees is Initializable { event DepositData(address instance, bytes32 indexed hash, uint256 block, uint256 index); event WithdrawalData(address instance, bytes32 indexed hash, uint256 block, uint256 index); + event VerifierUpdated(address newVerifier); + event ProxyUpdated(address newProxy); struct TreeLeaf { bytes32 hash; @@ -283,10 +285,12 @@ contract TornadoTrees is Initializable { function setTornadoProxyContract(address _tornadoProxy) external onlyGovernance { tornadoProxy = _tornadoProxy; + emit ProxyUpdated(_tornadoProxy); } function setVerifierContract(IBatchTreeUpdateVerifier _treeUpdateVerifier) external onlyGovernance { treeUpdateVerifier = _treeUpdateVerifier; + emit VerifierUpdated(address(_treeUpdateVerifier)); } function blockNumber() public view virtual returns (uint256) {