Skip to content

Commit

Permalink
Fix bug in Campaign contract
Browse files Browse the repository at this point in the history
  • Loading branch information
huyminh1115 committed Jan 25, 2024
1 parent 09a8806 commit fbac641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contracts/Campaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ export class CampaignContract extends SmartContract {
let infoTreeRoot = this.infoTreeRoot.getAndRequireEquals();
let statusTreeRoot = this.statusTreeRoot.getAndRequireEquals();
let configTreeRoot = this.configTreeRoot.getAndRequireEquals();
// let nextCampaignId = this.nextCampaignId.getAndRequireEquals();
let nextCampaignId = this.nextCampaignId.getAndRequireEquals();
let lastRolledUpActionState =
this.lastRolledUpActionState.getAndRequireEquals();

ownerTreeRoot.assertEquals(proof.publicOutput.initialOwnerTreeRoot);
infoTreeRoot.assertEquals(proof.publicOutput.initialInfoTreeRoot);
statusTreeRoot.assertEquals(proof.publicOutput.initialStatusTreeRoot);
configTreeRoot.assertEquals(proof.publicOutput.initialConfigTreeRoot);
// nextCampaignId.assertEquals(proof.publicOutput.initialNextCampaignId);
nextCampaignId.assertEquals(proof.publicOutput.initialNextCampaignId);
lastRolledUpActionState.assertEquals(
proof.publicOutput.initialLastRolledUpACtionState
);
Expand Down

0 comments on commit fbac641

Please sign in to comment.