From c5758dad74b4616774e782706ce1fe4f41ee9a3a Mon Sep 17 00:00:00 2001 From: Coby Date: Wed, 18 Sep 2024 17:23:00 -0400 Subject: [PATCH] more getAndRequires --- examples/zkapps/anonymous-message-board/src/message.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/zkapps/anonymous-message-board/src/message.ts b/examples/zkapps/anonymous-message-board/src/message.ts index 2f4b4518b..42f67301a 100644 --- a/examples/zkapps/anonymous-message-board/src/message.ts +++ b/examples/zkapps/anonymous-message-board/src/message.ts @@ -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