Skip to content

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
dpinones committed Nov 5, 2024
1 parent 4932719 commit 02b450c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/token.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ mod MyToken {
.beasts_owners
.entry((beast_stats.tier, beast_stats.level, beast_stats.beast_id))
.read();
assert(beast_owner.is_non_zero(), 'already minted beast');
assert(beast_owner.is_zero(), 'already minted beast');

let total_supply = self.total_supply.read();
let token_id = total_supply + 1;
Expand Down

0 comments on commit 02b450c

Please sign in to comment.