Skip to content

Commit

Permalink
Add sns, ton providers
Browse files Browse the repository at this point in the history
  • Loading branch information
gemcoder21 committed Aug 17, 2023
1 parent 350c9fc commit ed6d19c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions primitives/src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ pub struct NameRecord {
pub enum NameProvider {
Ud,
Ens,
Sns,
Ton,
}

impl NameProvider {
pub fn as_str(&self) -> &'static str {
match self {
Self::Ud => "ud",
Self::Ens => "ens",
Self::Sns => "sns",
Self::Ton => "ton",
}
}
}

0 comments on commit ed6d19c

Please sign in to comment.