From 93efd2548be56b283c27aec1d3fcfb32fb2eca00 Mon Sep 17 00:00:00 2001 From: Roman Storm Date: Mon, 22 Jul 2019 13:37:02 -0700 Subject: [PATCH] add timestamp --- contracts/Mixer.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/Mixer.sol b/contracts/Mixer.sol index 59fbcc5..a295377 100644 --- a/contracts/Mixer.sol +++ b/contracts/Mixer.sol @@ -13,7 +13,7 @@ contract Mixer is MerkleTreeWithHistory { mapping(uint256 => bool) public commitments; IVerifier verifier; - event Deposit(uint256 indexed commitment, uint256 leafIndex); + event Deposit(uint256 indexed commitment, uint256 leafIndex, uint256 timestamp); event Withdraw(address to, uint256 nullifier, uint256 fee); /** @@ -40,7 +40,7 @@ contract Mixer is MerkleTreeWithHistory { require(!commitments[commitment], "The commitment has been submitted"); _insert(commitment); commitments[commitment] = true; - emit Deposit(commitment, next_index - 1); + emit Deposit(commitment, next_index - 1, block.timestamp); } /**