Skip to content

Commit

Permalink
fix(poll): amended mergeMaciStateAq to directly store the new root …
Browse files Browse the repository at this point in the history
…to state

Removed redundant call `getStateAqRoot` and directly stored the new root to `mergedStateRoot`
  • Loading branch information
ctrlc03 committed Sep 16, 2022
1 parent 6f1fa85 commit 76c991a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/contracts/Poll.sol
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ contract Poll is
extContracts.maci.stateAq().subTreesMerged(),
ERROR_STATE_AQ_SUBTREES_NEED_MERGE
);
extContracts.maci.mergeStateAq(_pollId);

mergedStateRoot = extContracts.maci.mergeStateAq(_pollId);

mergedStateRoot = extContracts.maci.getStateAqRoot();
// Set currentSbCommitment
uint256[3] memory sb;
sb[0] = mergedStateRoot;
Expand Down

0 comments on commit 76c991a

Please sign in to comment.