Follow ups when changing `stateTreeDepth` - privacy-scaling-explorations/maci Wiki

MACI has a few hard-coded value associated with stateTreeDepth; it assumes stateTreeDepth would be 10. But when it comes to stateTreeDepth is other than 10, its hard-coded value has to be consistent with stateTreeDepth respectively.

Modify Contracts sub-package

Modify MACI.sol file

stateTreeDepth variable has to be modified from 10 to the new value.

Modify genEmptyBallotRootsContract.ts file

Ballot tree depth has to be modified from 10 to the new value. It is first argument of the IncrementalQuinTree's constructor.

Generate an artifacts

Run following commands under cli/ path:

npm run build
npm run compileSol

Modify Core sub-package

Modify MaciState.ts file

STATE_TREE_DEPTH variable has to be modified from 10 to the new value.