[pallet-assets] add asset_exists(id: AssetId) function (#12782)

* check if an asset exists via loose coupling

* Update frame/support/src/traits/tokens/fungibles.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Co-authored-by: parity-processbot <>
This commit is contained in:
dharjeezyjoe petrowskiparity-processbot
authored and GitHub committed 2022-12-08 14:09:17 +00:00
1 parent 9a014d1ecd
commit 200f49d66d
2 files changed
+7

No files matched your search

@@ -83,6 +83,9 @@ pub trait Inspect<AccountId> {
who: &AccountId,
amount: Self::Balance,
) -> WithdrawConsequence<Self::Balance>;
/// Returns `true` if an `asset` exists.
fn asset_exists(asset: Self::AssetId) -> bool;
}
/// Trait for reading metadata from a fungible asset.