Skip to content

Commit

Permalink
Merge pull request #17 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 getYourNftCardProperties
  • Loading branch information
razvan-tanase authored Nov 7, 2024
2 parents 9af0c47 + 6f4a034 commit 725431c
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 @@ -97,7 +97,7 @@ pub trait Tema1: default_issue_callbacks::DefaultIssueCallbacksModule {
require!(!self.token_id().is_empty(), "NFT not issued");

let student_address = self.blockchain().get_caller();
require!(self.student_address().contains(&student_address), "Congratulations! You already finished the homework!");
require!(!self.student_address().contains(&student_address), "Congratulations! You already finished the homework!");

let mut rand_source = RandomnessSource::new();
let vec_len = self.cards_properties().len();
Expand Down

0 comments on commit 725431c

Please sign in to comment.