mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 04:51:01 +00:00
[fix lint warnings: NFTs pallet] fix clippy::missing_errors_doc lint warnings (#14648)
* fix missing errors doc warnings * cargo +nightly fmt * Update frame/nfts/src/features/create_delete_item.rs * Update frame/nfts/src/features/create_delete_item.rs * Update frame/nfts/src/features/transfer.rs * Update frame/nfts/src/features/create_delete_collection.rs * add intra doc linking for errors * fmt * Apply suggestions from code review Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -31,7 +31,12 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||
Collection::<T, I>::get(collection).map(|i| i.owner)
|
||||
}
|
||||
|
||||
/// Validate the `data` was signed by `signer` and the `signature` is correct.
|
||||
/// Validates the signature of the given data with the provided signer's account ID.
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// This function returns a [`WrongSignature`](crate::Error::WrongSignature) error if the
|
||||
/// signature is invalid or the verification process fails.
|
||||
pub fn validate_signature(
|
||||
data: &Vec<u8>,
|
||||
signature: &T::OffchainSignature,
|
||||
|
||||
Reference in New Issue
Block a user