Skip to content

Commit

Permalink
PR cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tasiov committed Jul 31, 2023
1 parent 90c8033 commit b3bf1a1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions contracts/collections/sg721-base/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,15 @@ where
if share_delta > Decimal::percent(MAX_SHARE_DELTA_PCT) {
return Err(ContractError::InvalidRoyalties(format!(
"Share increase cannot be greater than {}%",
MAX_SHARE_DELTA_PCT.to_string()
MAX_SHARE_DELTA_PCT
)));
}
if new_royalty_info.share > Decimal::percent(MAX_ROYALTY_SHARE_PCT) {
return Err(ContractError::InvalidRoyalties(
format!("Share cannot be greater than {}%", MAX_ROYALTY_SHARE_PCT)
.to_string(),
));
return Err(ContractError::InvalidRoyalties(format!(
"Share cannot be greater than {}%",
MAX_ROYALTY_SHARE_PCT
)));
}
} else {
}
}

Expand Down

0 comments on commit b3bf1a1

Please sign in to comment.