Skip to content

Commit

Permalink
Merge pull request #18 from cs-pub-ro/tema1-good
Browse files Browse the repository at this point in the history
[TEMA 1] Small fix for blocking problem in exchangeNft
  • Loading branch information
razvan-tanase authored Nov 7, 2024
2 parents 725431c + 27c3bd4 commit 109b919
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 109b919

Please sign in to comment.