Skip to content

Commit

Permalink
Fixed problem with action state checking
Browse files Browse the repository at this point in the history
  • Loading branch information
aii23 committed Jul 25, 2024
1 parent 8be5ef5 commit 99145e6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/PLottery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ export class PLottery extends SmartContract {
let lastProcessedState = this.lastProcessedState.getAndRequireEquals();
let lastProcessedTicketId =
this.lastProcessedTicketId.getAndRequireEquals();
let actionState = this.account.actionState.getAndRequireEquals();

reduceProof.publicOutput.processedActionList.assertEquals(
ActionList.emptyHash,
Expand All @@ -208,10 +207,7 @@ export class PLottery extends SmartContract {
);

// Check that actionState is equal to actionState on proof
actionState.assertEquals(
reduceProof.publicOutput.finalState,
'Final state is not match contract actionState'
);
this.account.actionState.requireEquals(reduceProof.publicOutput.finalState);

// Check inital ticket id
lastProcessedTicketId.assertEquals(
Expand Down

0 comments on commit 99145e6

Please sign in to comment.