diff --git a/test/Mixer.test.js b/test/Mixer.test.js index 687f859..16a0b39 100644 --- a/test/Mixer.test.js +++ b/test/Mixer.test.js @@ -220,16 +220,10 @@ contract('Mixer', accounts => { }) it('should prevent double spend', async () => { - const deposit = generateDeposit() await tree.insert(deposit.commitment) await mixer.deposit(toBN(deposit.commitment.toString()), { value, from: sender }) - const deposit2 = generateDeposit() - await tree.insert(deposit2.commitment) - await mixer.deposit(toBN(deposit2.commitment.toString()), { value, from: sender }) - - const { root, path_elements, path_index } = await tree.path(0) const input = stringifyBigInts({ @@ -251,16 +245,10 @@ contract('Mixer', accounts => { }) it('should prevent double spend with overflow', async () => { - const deposit = generateDeposit() await tree.insert(deposit.commitment) await mixer.deposit(toBN(deposit.commitment.toString()), { value, from: sender }) - const deposit2 = generateDeposit() - await tree.insert(deposit2.commitment) - await mixer.deposit(toBN(deposit2.commitment.toString()), { value, from: sender }) - - const { root, path_elements, path_index } = await tree.path(0) const input = stringifyBigInts({