mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-04 07:15:01 -04:00
rename pathIndex -> pathIndices
This commit is contained in:
parent
07168f9816
commit
ec4508e81e
5 changed files with 19 additions and 22 deletions
|
@ -148,7 +148,7 @@ contract('ETHMixer', accounts => {
|
|||
refund,
|
||||
secret: deposit.secret,
|
||||
pathElements: path_elements,
|
||||
pathIndex: path_index,
|
||||
pathIndices: path_index,
|
||||
})
|
||||
|
||||
let proofData = await websnarkUtils.genWitnessAndProve(groth16, input, circuit, proving_key)
|
||||
|
@ -208,7 +208,7 @@ contract('ETHMixer', accounts => {
|
|||
nullifier: deposit.nullifier,
|
||||
secret: deposit.secret,
|
||||
pathElements: path_elements,
|
||||
pathIndex: path_index,
|
||||
pathIndices: path_index,
|
||||
})
|
||||
|
||||
|
||||
|
@ -263,7 +263,7 @@ contract('ETHMixer', accounts => {
|
|||
refund,
|
||||
secret: deposit.secret,
|
||||
pathElements: path_elements,
|
||||
pathIndex: path_index,
|
||||
pathIndices: path_index,
|
||||
})
|
||||
const proofData = await websnarkUtils.genWitnessAndProve(groth16, input, circuit, proving_key)
|
||||
const { proof, publicSignals } = websnarkUtils.toSolidityInput(proofData)
|
||||
|
@ -289,7 +289,7 @@ contract('ETHMixer', accounts => {
|
|||
refund,
|
||||
secret: deposit.secret,
|
||||
pathElements: path_elements,
|
||||
pathIndex: path_index,
|
||||
pathIndices: path_index,
|
||||
})
|
||||
const proofData = await websnarkUtils.genWitnessAndProve(groth16, input, circuit, proving_key)
|
||||
const { proof, publicSignals } = websnarkUtils.toSolidityInput(proofData)
|
||||
|
@ -315,7 +315,7 @@ contract('ETHMixer', accounts => {
|
|||
refund,
|
||||
secret: deposit.secret,
|
||||
pathElements: path_elements,
|
||||
pathIndex: path_index,
|
||||
pathIndices: path_index,
|
||||
})
|
||||
|
||||
const proofData = await websnarkUtils.genWitnessAndProve(groth16, input, circuit, proving_key)
|
||||
|
@ -341,7 +341,7 @@ contract('ETHMixer', accounts => {
|
|||
refund,
|
||||
secret: deposit.secret,
|
||||
pathElements: path_elements,
|
||||
pathIndex: path_index,
|
||||
pathIndices: path_index,
|
||||
})
|
||||
|
||||
const dummyRoot = randomHex(32)
|
||||
|
@ -370,7 +370,7 @@ contract('ETHMixer', accounts => {
|
|||
refund,
|
||||
secret: deposit.secret,
|
||||
pathElements: path_elements,
|
||||
pathIndex: path_index,
|
||||
pathIndices: path_index,
|
||||
})
|
||||
const proofData = await websnarkUtils.genWitnessAndProve(groth16, input, circuit, proving_key)
|
||||
let { proof, publicSignals } = websnarkUtils.toSolidityInput(proofData)
|
||||
|
@ -422,7 +422,7 @@ contract('ETHMixer', accounts => {
|
|||
refund: bigInt(1),
|
||||
secret: deposit.secret,
|
||||
pathElements: path_elements,
|
||||
pathIndex: path_index,
|
||||
pathIndices: path_index,
|
||||
})
|
||||
|
||||
const proofData = await websnarkUtils.genWitnessAndProve(groth16, input, circuit, proving_key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue