Merge pull request #24 from peppersec/audit-6

Audit 6
This commit is contained in:
Roman Storm 2019-11-18 12:03:44 -08:00 committed by GitHub
commit d0e312eb80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

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,