diff --git a/contracts/collections/sg721-base/src/contract.rs b/contracts/collections/sg721-base/src/contract.rs index bcf6df647..7f1dec93a 100644 --- a/contracts/collections/sg721-base/src/contract.rs +++ b/contracts/collections/sg721-base/src/contract.rs @@ -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 { } }