-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(spike): cross-chain nonfungible implementation #400
base: chungquantin/feat-nfts
Are you sure you want to change the base?
feat(spike): cross-chain nonfungible implementation #400
Conversation
46d374a
to
05e552e
Compare
b76a626
to
c76f66b
Compare
@@ -148,7 +148,7 @@ pub mod pallet { | |||
/// the `create_collection_with_id` function. However, if the `Incrementable` trait | |||
/// implementation has an incremental order, the `create_collection_with_id` function | |||
/// should not be used as it can claim a value in the ID sequence. | |||
type CollectionId: Member + Parameter + MaxEncodedLen + Copy + Incrementable; | |||
type CollectionId: Member + Parameter + MaxEncodedLen + Clone + Incrementable; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove Copy
, add Clone
. xcm::v4::Location
type is not implemented with Copy
.
The Incrementable trait is implemented in the non_fungibles_v2.rs file. Could we check whether removing this bound from the CollectionId type causes a lot of issues. |
Any reason why we need to remove it? |
Because if the incrementable can be removed it would not be necessary to implement the |
769f50a
to
fafb988
Compare
[sc-1734] |
This reverts commit 672ceae.
eba2458
to
7332079
Compare
76a0d8e
to
e0d13f2
Compare
You can view the changes if we remove the incrementable trait here #406. Imo, the current approach in this PR is cleaner as it does not remove any thing related to functionality in the pallet-nfts, mainly changes in the CollectionId trait and data ownership. |
Description
Blocked by: #387
The pull request implements the
NonFungiblesTransactor
using theForeignNfts
pallet nfts instance. This makes changes to the pallet-nftsCollectionId
type to remove theCopy
required parameter trait asxcm::latest::Location
is not implemented withCopy
. Replace all the copies ofCollectionId
in the pallet-nfts code to useClone
. Performance benchmarking should be considered to see if there is a huge change in the memory efficiency.MultiLocationCollectionId
implemented withxcm::latest::Location
NonFungiblesTransactor
ForeignNfts
instance and runtime configurationOutcome