-
Notifications
You must be signed in to change notification settings - Fork 8
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(nfts): AccountBalance
deposit
#413
Changes from 38 commits
8a341d9
e391888
31368ca
3f9e07e
99b31d8
5ecb661
ee364fb
5015e90
94f0c74
d3ae740
ed6d6a2
bda3e47
460859f
663066e
d975170
f316e2f
28159d0
911c5a9
a16ecdc
02db7a5
78a3815
26b43f3
8210e9c
ff8d560
569aae7
439ad31
40a8bd8
3d1e367
b6c2529
e1a8c4c
e2aedba
1a805f5
c76d469
d3b3141
7820d79
df965e1
6abe359
1159074
c5fd9e3
af0b71e
270039e
b1719a6
e4020db
986a5b6
1aa79f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -411,7 +411,7 @@ impl<T: Config<I>, I: 'static> Transfer<T::AccountId> for Pallet<T, I> { | |
item: &Self::ItemId, | ||
destination: &T::AccountId, | ||
) -> DispatchResult { | ||
Self::do_transfer(*collection, *item, destination.clone(), |_, _| Ok(())) | ||
Self::do_transfer(destination, *collection, *item, destination.clone(), |_, _| Ok(())) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. DQ: Is the above function ( Curious because it means that the destination account always has to pay for the deposit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes that function is used by other pallets. I put There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a concern but like you say, we have no other origin to put in here and in the end the destination account should be the one paying for it. Perhaps in the future we could make the change to the trait function to allow for the |
||
} | ||
|
||
fn disable_transfer(collection: &Self::CollectionId, item: &Self::ItemId) -> DispatchResult { | ||
|
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.
Note: This overrides the balance of
caller
increate_collection
. The purpose is to make this more specific to what are reserved in the function.