Skip to content

Commit

Permalink
fix: account token ownership limit when mint
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshiposha committed Jun 24, 2024
1 parent 955f1bd commit b89a3c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/nonfungible/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ impl<T: Config> Pallet<T> {
*balance = balance.checked_add(1).ok_or(ArithmeticError::Overflow)?;

ensure!(
*balance <= collection.limits.account_token_ownership_limit(),
*balance < collection.limits.account_token_ownership_limit(),
<CommonError<T>>::AccountTokenLimitExceeded,
);
}
Expand Down

0 comments on commit b89a3c8

Please sign in to comment.