mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-10-01 01:06:17 -04:00
fix test
This commit is contained in:
parent
c0e81f2a37
commit
24a21ac88f
@ -321,14 +321,14 @@ contract('ETHMixer', accounts => {
|
|||||||
await mixer.deposit(toFixedHex(deposit.commitment), { value, from: sender })
|
await mixer.deposit(toFixedHex(deposit.commitment), { value, from: sender })
|
||||||
|
|
||||||
const { root, path_elements, path_index } = await tree.path(0)
|
const { root, path_elements, path_index } = await tree.path(0)
|
||||||
const oneEtherFee = bigInt(1e18) // 1 ether
|
const largeFee = bigInt(value).add(bigInt(1))
|
||||||
const input = stringifyBigInts({
|
const input = stringifyBigInts({
|
||||||
root,
|
root,
|
||||||
nullifierHash: pedersenHash(deposit.nullifier.leInt2Buff(31)),
|
nullifierHash: pedersenHash(deposit.nullifier.leInt2Buff(31)),
|
||||||
nullifier: deposit.nullifier,
|
nullifier: deposit.nullifier,
|
||||||
relayer: operator,
|
relayer: operator,
|
||||||
recipient,
|
recipient,
|
||||||
fee: oneEtherFee,
|
fee: largeFee,
|
||||||
refund,
|
refund,
|
||||||
secret: deposit.secret,
|
secret: deposit.secret,
|
||||||
pathElements: path_elements,
|
pathElements: path_elements,
|
||||||
|
Loading…
Reference in New Issue
Block a user