Skip to content

Commit

Permalink
Update MutationHooks docstrings (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
sea212 committed May 27, 2023
1 parent 4ae0372 commit 055e7db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions traits/src/currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ impl<AccountId, CurrencyId, Balance> OnTransfer<AccountId, CurrencyId, Balance>
}

pub trait MutationHooks<AccountId, CurrencyId, Balance> {
/// Handler to burn or transfer account's dust
/// Handler to burn or transfer account's dust.
type OnDust: OnDust<AccountId, CurrencyId, Balance>;

/// Hook to run before slashing an account.
Expand All @@ -710,10 +710,10 @@ pub trait MutationHooks<AccountId, CurrencyId, Balance> {
/// Hook to run after transferring from an account to another.
type PostTransfer: OnTransfer<AccountId, CurrencyId, Balance>;

/// Handler for when an account was created
/// Handler for when an account was created.
type OnNewTokenAccount: Happened<(AccountId, CurrencyId)>;

/// Handler for when an account was created
/// Handler for when an account was killed.
type OnKilledTokenAccount: Happened<(AccountId, CurrencyId)>;
}

Expand Down

0 comments on commit 055e7db

Please sign in to comment.