You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In contract Poll id 1, messgeAq.subTreesMerged and messageAq.treeMerged all returned true. But when generating proofs, in the process of genMaciStateFromContract(), it failed to run the function maciState.stateAq.mergeSubRoots() and give me the following error:
❯ yarn hardhat run scripts/maci-cycle/6-genProofs.ts --network rinkeby
yarn run v1.22.18
$ /Users/johnson/Desktop/qv-contracts/node_modules/.bin/hardhat run scripts/maci-cycle/6-genProofs.ts --network rinkeby
Generating typings for: 0 artifacts in dir: typechain/ for target: ethers-v5
Successfully generated 3 typings!
Successfully generated 11 typings for external artifacts!
Running docker-compose to generate proofs...
Creating qv-contracts_maci_run ...
Creating qv-contracts_maci_run ... done
fromBlock = 0
(node:1) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert(this.subTreesMerged === false)
at AccQueue.mergeSubRoots (/root/maci/crypto/ts/AccQueue.ts:411:9)
at /root/maci/contracts/ts/genMaciState.ts:389:31
at step (/root/maci/contracts/build/genMaciState.js:44:23)
at Object.next (/root/maci/contracts/build/genMaciState.js:25:53)
at fulfilled (/root/maci/contracts/build/genMaciState.js:16:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functionwithout a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
✨ Done in 70.69s.
The possible problem might be the poll id 0. It has merged signup state but not merged message because there is no message to merge in the ballot. (I do not publish any message before the deadline) But in this case, it works fine on localhost. So maybe it's not the cause.
I tried a normal approach that poll id 0 is all merged and generated the proofs on Rinkeby testnet. It works.
Reproduce information:
Contract addresses on Rinkeby, and the problem is in the poll id 1.
In contract Poll id 1,
messgeAq.subTreesMerged
andmessageAq.treeMerged
all returned true. But when generating proofs, in the process ofgenMaciStateFromContract()
, it failed to run the functionmaciState.stateAq.mergeSubRoots()
and give me the following error:The possible problem might be the poll id 0. It has merged signup state but not merged message because there is no message to merge in the ballot. (I do not publish any message before the deadline) But in this case, it works fine on localhost. So maybe it's not the cause.
I tried a normal approach that poll id 0 is all merged and generated the proofs on Rinkeby testnet. It works.
Reproduce information:
Contract addresses on Rinkeby, and the problem is in the poll id 1.
coordinator private key:
The text was updated successfully, but these errors were encountered: