Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs
  • Loading branch information
muharem committed Aug 16, 2024
commit cc6495f7fa3e9de0e53efee845e700d2622ed400
10 changes: 5 additions & 5 deletions substrate/frame/support/src/traits/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ impl<A, F> Consideration<A, F> for () {
fn ensure_successful(_: &A, _: F) {}
}

/// An extension of the [Consideration] trait that allows for the management of tickets that may
/// represent no cost. While a `MaybeConsideration` still requires proper handling, it introduces
/// the ability to determine if a ticket has no associated cost and can be forgotten without any
/// side effects.
/// An extension of the [`Consideration`] trait that allows for the management of tickets that may
/// represent no cost. While the [`MaybeConsideration`] still requires proper handling, it
/// introduces the ability to determine if a ticket represents no cost and can be safely forgotten
/// without any side effects.
pub trait MaybeConsideration<AccountId, Footprint>: Consideration<AccountId, Footprint> {
/// Returns `true` if this `Consideration` represents a "no-cost" ticket and can be forgotten
/// Returns `true` if this [`Consideration`] represents a no-cost ticket and can be forgotten
/// without any side effects.
fn is_none(&self) -> bool;
}
Expand Down