Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change sender clone to reference
Co-authored-by: h4x3rotab <[email protected]>
  • Loading branch information
ilionic and h4x3rotab authored Dec 28, 2021
commit 0b9e103fdaa8a03c3f59e879bb39f8481925de81
2 changes: 1 addition & 1 deletion pallets/rmrk-core/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl<T: Config> Nft<T::AccountId, StringLimitOf<T>> for Pallet<T> {
) -> sp_std::result::Result<(CollectionId, NftId), DispatchError> {
let mut sending_nft =
NFTs::<T>::get(collection_id, nft_id).ok_or(Error::<T>::NoAvailableNftId)?;
ensure!(sending_nft.rootowner == sender.clone(), Error::<T>::NoPermission);
ensure!(&sending_nft.rootowner == &sender, Error::<T>::NoPermission);

match new_owner.clone() {
AccountIdOrCollectionNftTuple::AccountId(account_id) => {
Expand Down