-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[pallet-assets] add asset_exists(id: AssetId) function #12444
Comments
@bernardoaraujor who should ideally have the privilege of calling this function/extrinsic? |
Can you explain the context in which you are unable to do this? For example, within FRAME, you can just use
|
This is coming from a pallet that has a loose-coupling with Correct me if I'm wrong, but as far as I could tell, I could only read |
I see, so you are looking for either a impl<T: Config<I>, I: 'static> Pallet<T, I> {
pub fn asset_class_exists(id: T::AssetId) -> bool { }
} within the Assets pallet? Seems like a good issue for @vieira-giulia to figure out. Also posting https://substrate.stackexchange.com/questions/922/pallet-loose-couplingtight-coupling-and-missing-traits for reference. |
yes... as long as it's accessible via loose coupling, it should be enough. |
I have gone ahead to open a PR for this @joepetrowski @bernardoaraujor since it has not been worked on for over a month |
This issue has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/polkadot-release-analysis-v0-9-36/1529/1 |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
While working on an implementation of an Asset Registry for paritytech/trappist#51, we needed to check whether an Asset exists.
We are currently doing the following, which feels a bit like a hack:
Ideally,
pallet-assets
should provide a function that does this, because it is basic functionality that is missing from the pallet.Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: