From 84a498af40fe66fe203812fb8a839ed4f7ab1574 Mon Sep 17 00:00:00 2001 From: Anonim Date: Thu, 26 Dec 2024 14:35:45 +0300 Subject: [PATCH] account.nr --- authwit/src/account.nr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authwit/src/account.nr b/authwit/src/account.nr index 93c8ce72..505d1038 100644 --- a/authwit/src/account.nr +++ b/authwit/src/account.nr @@ -42,7 +42,7 @@ impl AccountActions<&mut PrivateContext> { [app_payload.hash(), fee_payload.hash()], GENERATOR_INDEX__COMBINED_PAYLOAD, ); - assert(valid_fn(self.context, combined_payload_hash)); + assert!(valid_fn(self.context, combined_payload_hash)); fee_payload.execute_calls(self.context); self.context.end_setup(); @@ -77,7 +77,7 @@ impl AccountActions<&mut PrivateContext> { inner_hash, ); let valid_fn = self.is_valid_impl; - assert(valid_fn(self.context, message_hash) == true, "Message not authorized by account"); + assert!(valid_fn(self.context, message_hash), "Message not authorized by account"); IS_VALID_SELECTOR } // docs:end:verify_private_authwit