[NFTs] Some types are made private but it shouldn't #3631
Labels
I2-bug
The node fails to follow expected behavior.
T2-pallets
This PR/Issue is related to a particular pallet.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
We are developing precompiles for the NFTs pallet and we need to call
pay_tips
dispatchable.It require us to pass some
ItemTip
objects, but we cannot deal with the typeItemTip
as struct properties are made public only for the pallet_nfts crate withpub(super)
.Is it a voluntary design choice and so can we have an explanation on this ?
Previous types was fine, public visibility was not only for the crate.
Steps to reproduce
Try to create the type in an external crate:
pallet_nfts::ItemTip<CollectionId, ItemId, AccountId, Balance> { collection: Default::default(), ... }
giving error:
error: cannot construct
pallet_nfts::ItemTip<CollectionId, ItemId, AccountId, Balance>with struct literal syntax due to private fields
The text was updated successfully, but these errors were encountered: