Skip to content

Commit

Permalink
[TEMA 1] Small fix for blocking problem in exchangeNft
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan-tanase committed Nov 7, 2024
1 parent 725431c commit 27c3bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assignments/tema-1/src/tema_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 27c3bd4

Please sign in to comment.