diff --git a/authwit/src/account.nr b/authwit/src/account.nr index 93c8ce7..505d103 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