This commit is contained in:
poma 2019-11-15 22:42:59 +03:00
parent c0e81f2a37
commit 24a21ac88f
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

View File

@ -321,14 +321,14 @@ contract('ETHMixer', accounts => {
await mixer.deposit(toFixedHex(deposit.commitment), { value, from: sender })
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({
root,
nullifierHash: pedersenHash(deposit.nullifier.leInt2Buff(31)),
nullifier: deposit.nullifier,
relayer: operator,
recipient,
fee: oneEtherFee,
fee: largeFee,
refund,
secret: deposit.secret,
pathElements: path_elements,