Skip to content

Commit

Permalink
feat: add docstring in type
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshvarma committed Oct 24, 2023
1 parent 2693743 commit 942c318
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chain-extensions/types/unified-accounts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ pub enum Command {
#[derive(Debug, Copy, Clone, PartialEq, Eq, Encode, Decode, MaxEncodedLen)]
#[cfg_attr(feature = "std", derive(scale_info::TypeInfo))]
pub enum UnifiedAddress<T: Encode + Decode> {
/// The address fetched from the mappings and the account
/// is unified
Mapped(T),
/// The default address associated with account as there
/// is no mapping found and accounts are not unified
Default(T),
}

0 comments on commit 942c318

Please sign in to comment.