Skip to content

Minting NFT to Different Owner than Origin Still Mints to Origin #111

@HashWarlock

Description

@HashWarlock

In mint_nft there can be defined a owner that will mint the NFT to the defined owner. This works within the RMRK pallet, but it is incorrectly reflected in the pallet_uniques Storage due to this line:

pallet_uniques::Pallet::<T>::do_mint(
				collection_id,
				nft_id,
				sender.clone(),
				|_details| Ok(()),
			)?;

This needs to be changed to ensure that pallet_uniques mints the NFT to the proper owner

pallet_uniques::Pallet::<T>::do_mint(
				collection_id,
				nft_id,
				owner,
				|_details| Ok(()),
			)?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions