Skip to content

Commit

Permalink
change(pallet-assets-freezer): turn trait impl doc comments into dev …
Browse files Browse the repository at this point in the history
…comments
  • Loading branch information
pandres95 committed Apr 11, 2024
1 parent 90b8cd0 commit 0e5e4c6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions substrate/frame/assets-freezer/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ use frame_support::traits::{
use pallet_assets::FrozenBalance;
use sp_runtime::traits::Zero;

/// Implements [`FrozenBalance`] from [`pallet-assets`], so it can understands how much of an
/// account balance is frozen, and is able to signal to this pallet when to clear the state of an
/// account.
// Implements [`FrozenBalance`] from [`pallet-assets`], so it can understand how much of an
// account balance is frozen, and is able to signal to this pallet when to clear the state of an
// account.
impl<T: Config<I>, I: 'static> FrozenBalance<T::AssetId, T::AccountId, T::Balance>
for Pallet<T, I>
{
Expand All @@ -40,6 +40,10 @@ impl<T: Config<I>, I: 'static> FrozenBalance<T::AssetId, T::AccountId, T::Balanc
}
}

// Implement [`fungibles::Inspect`](frame_support::traits::fungibles::Inspect) as it is bound by
// [`fungibles::InspectFreeze`](frame_support::traits::fungibles::InspectFreeze) and
// [`fungibles::MutateFreeze`](frame_support::traits::fungibles::MutateFreeze). To do so, we'll
// re-export all of `pallet-assets` implementation of the same trait.
impl<T: Config<I>, I: 'static> Inspect<T::AccountId> for Pallet<T, I> {
type AssetId = T::AssetId;
type Balance = T::Balance;
Expand Down

0 comments on commit 0e5e4c6

Please sign in to comment.