mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-03 06:44:56 -04:00
clean up tests
This commit is contained in:
parent
791875ddc5
commit
242a87569b
1 changed files with 0 additions and 12 deletions
|
@ -220,16 +220,10 @@ contract('Mixer', accounts => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should prevent double spend', async () => {
|
it('should prevent double spend', async () => {
|
||||||
|
|
||||||
const deposit = generateDeposit()
|
const deposit = generateDeposit()
|
||||||
await tree.insert(deposit.commitment)
|
await tree.insert(deposit.commitment)
|
||||||
await mixer.deposit(toBN(deposit.commitment.toString()), { value, from: sender })
|
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 { root, path_elements, path_index } = await tree.path(0)
|
||||||
|
|
||||||
const input = stringifyBigInts({
|
const input = stringifyBigInts({
|
||||||
|
@ -251,16 +245,10 @@ contract('Mixer', accounts => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should prevent double spend with overflow', async () => {
|
it('should prevent double spend with overflow', async () => {
|
||||||
|
|
||||||
const deposit = generateDeposit()
|
const deposit = generateDeposit()
|
||||||
await tree.insert(deposit.commitment)
|
await tree.insert(deposit.commitment)
|
||||||
await mixer.deposit(toBN(deposit.commitment.toString()), { value, from: sender })
|
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 { root, path_elements, path_index } = await tree.path(0)
|
||||||
|
|
||||||
const input = stringifyBigInts({
|
const input = stringifyBigInts({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue