Skip to content

Commit

Permalink
Remove unneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
wilwade committed Sep 24, 2024
1 parent 813c1c9 commit 04c5640
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pallets/handles/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ pub mod pallet {
Ok(display_handle.into_inner())
}

/// Checks that handle base string is valid
/// Checks that handle base string is valid before canonicalization
fn validate_base_handle(base_handle: Vec<u8>) -> Result<String, DispatchError> {
// Convert base handle to UTF-8 string slice while validating.
let base_handle_str =
Expand All @@ -664,10 +664,6 @@ pub mod pallet {
Error::<T>::InvalidHandleCharacterLength
);

ensure!(
!is_reserved_canonical_handle(&base_handle_str),
Error::<T>::HandleIsNotAllowed
);
ensure!(
!contains_blocked_characters(&base_handle_str),
Error::<T>::HandleContainsBlockedCharacters
Expand Down

0 comments on commit 04c5640

Please sign in to comment.