Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

expose the fields of Dust type to public #14388

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion frame/support/src/traits/tokens/fungible/regular.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub trait Inspect<AccountId>: Sized {

/// Special dust type which can be type-safely converted into a `Credit`.
#[must_use]
pub struct Dust<A, T: Inspect<A>>(pub(crate) T::Balance);
pub struct Dust<A, T: Inspect<A>>(pub T::Balance);

impl<A, T: Balanced<A>> Dust<A, T> {
/// Convert `Dust` into an instance of `Credit`.
Expand Down
2 changes: 1 addition & 1 deletion frame/support/src/traits/tokens/fungibles/regular.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub trait Inspect<AccountId>: Sized {

/// Special dust type which can be type-safely converted into a `Credit`.
#[must_use]
pub struct Dust<A, T: Unbalanced<A>>(pub(crate) T::AssetId, pub(crate) T::Balance);
pub struct Dust<A, T: Unbalanced<A>>(pub T::AssetId, pub T::Balance);

impl<A, T: Balanced<A>> Dust<A, T> {
/// Convert `Dust` into an instance of `Credit`.
Expand Down