Skip to content

Commit

Permalink
Merge pull request #40 from multiversx/fix-change-royalties-for-brand
Browse files Browse the repository at this point in the history
fix change royalties for brand
  • Loading branch information
alyn509 authored May 9, 2024
2 parents 581b51d + a52d82b commit c05fa37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nft-minter/src/royalties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub trait RoyaltiesModule:
fn change_royalties_for_brand(&self, brand_id: &BrandId<Self::Api>, new_royalties: BigUint) {
self.require_caller_is_admin();
let brand_exists = self.registered_brands().contains(brand_id);
require!(!brand_exists, "Brand doesn't exist");
require!(brand_exists, "Brand doesn't exist");
require!(
new_royalties <= ROYALTIES_MAX,
"Royalties cannot be over 100%"
Expand Down

0 comments on commit c05fa37

Please sign in to comment.