Skip to content

Commit

Permalink
wip: reproduce paritytech#12782
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-paulo-parity committed Dec 9, 2022
1 parent 95d3d4f commit f40a6a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frame/assets/src/impl_fungibles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ impl<T: Config<I>, I: 'static> fungibles::Inspect<<T as SystemConfig>::AccountId
fn asset_exists(asset: Self::AssetId) -> bool {
Asset::<T, I>::contains_key(asset)
}

fn foo() {}
}

impl<T: Config<I>, I: 'static> fungibles::InspectMetadata<<T as SystemConfig>::AccountId>
Expand Down
2 changes: 2 additions & 0 deletions frame/support/src/traits/tokens/fungibles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ pub trait Inspect<AccountId> {

/// Returns `true` if an `asset` exists.
fn asset_exists(asset: Self::AssetId) -> bool;

fn foo() -> ();
}

/// Trait for reading metadata from a fungible asset.
Expand Down

0 comments on commit f40a6a4

Please sign in to comment.