Skip to content

Commit

Permalink
more getAndRequires
Browse files Browse the repository at this point in the history
  • Loading branch information
45930 committed Sep 18, 2024
1 parent 70b1f24 commit c5758da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/zkapps/anonymous-message-board/src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export class Message extends SmartContract {
const signerPublicKey = signerPrivateKey.toPublicKey();

// Get approved public keys
const user1 = this.user1.get();
const user2 = this.user2.get();
const user3 = this.user3.get();
const user1 = this.user1.getAndRequireEquals();
const user2 = this.user2.getAndRequireEquals();
const user3 = this.user3.getAndRequireEquals();

// Assert that signerPublicKey is one of the approved public keys
signerPublicKey
Expand Down

0 comments on commit c5758da

Please sign in to comment.