--- a/pallets/nonfungible/src/lib.rs +++ b/pallets/nonfungible/src/lib.rs @@ -379,10 +379,7 @@ ) -> DispatchResult { let token_data = >::get((collection.id, token)).ok_or(>::TokenNotFound)?; - ensure!( - &token_data.owner == sender, - >::NoPermission - ); + ensure!(&token_data.owner == sender, >::NoPermission); if collection.permissions.access() == AccessMode::AllowList { collection.check_allowlist(sender)?; @@ -664,10 +661,7 @@ let token_data = >::get((collection.id, token)).ok_or(>::TokenNotFound)?; - ensure!( - &token_data.owner == from, - >::NoPermission - ); + ensure!(&token_data.owner == from, >::NoPermission); if collection.permissions.access() == AccessMode::AllowList { collection.check_allowlist(from)?;