Skip to content

Commit 34f7f81

Browse files
authored
Merge pull request #112 from rmrk-team/bug/111-mint-to-diff-owner
Bug #111 Minting NFT to Different Owner than Origin Still Mints to Origin
2 parents 3a1e5cc + 54a178a commit 34f7f81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pallets/rmrk-core/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,16 +292,16 @@ pub mod pallet {
292292
}
293293

294294
let (collection_id, nft_id) =
295-
Self::nft_mint(sender.clone(), owner, collection_id, recipient, royalty, metadata)?;
295+
Self::nft_mint(sender.clone(), owner.clone(), collection_id, recipient, royalty, metadata)?;
296296

297297
pallet_uniques::Pallet::<T>::do_mint(
298298
collection_id,
299299
nft_id,
300-
sender.clone(),
300+
owner.clone(),
301301
|_details| Ok(()),
302302
)?;
303303

304-
Self::deposit_event(Event::NftMinted { owner: sender, collection_id, nft_id });
304+
Self::deposit_event(Event::NftMinted { owner, collection_id, nft_id });
305305

306306
Ok(())
307307
}

0 commit comments

Comments
 (0)