From 27c3bd497b22dae4aaa6ea4cd02d9383d342f580 Mon Sep 17 00:00:00 2001 From: razvan-tanase Date: Thu, 7 Nov 2024 12:58:26 +0200 Subject: [PATCH] [TEMA 1] Small fix for blocking problem in exchangeNft --- assignments/tema-1/src/tema_1.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assignments/tema-1/src/tema_1.rs b/assignments/tema-1/src/tema_1.rs index 344f2d33..dd8052cd 100644 --- a/assignments/tema-1/src/tema_1.rs +++ b/assignments/tema-1/src/tema_1.rs @@ -120,7 +120,7 @@ pub trait Tema1: default_issue_callbacks::DefaultIssueCallbacksModule { require!(nonce <= self.nft_supply().len() as u64, "NFT not found"); let caller_address = self.blockchain().get_caller(); - require!(self.student_address().contains(&caller_address), "Congratulations! You already finished the homework!"); + require!(!self.student_address().contains(&caller_address), "Congratulations! You already finished the homework!"); let nft_payment = self.call_value().single_esdt(); let nft_student_data = self.blockchain().get_esdt_token_data(