Skip to content

Commit

Permalink
chore: run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pacmanifold committed Sep 22, 2023
1 parent 579fa57 commit 9c4d575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub fn coin_from_str(s: &str) -> Coin {
Coin { denom, amount }
}

/// Validate string as a valid CosmosSDK denom according to regex `r"^[a-zA-Z][a-zA-Z0-9/:._-]{2,127}$"`
/// See https://github.com/cosmos/cosmos-sdk/blob/7728516abfab950dc7a9120caad4870f1f962df5/types/coin.go#L865-L867
/// Validate string as a valid CosmosSDK denom according to regex
/// `r"^[a-zA-Z][a-zA-Z0-9/:._-]{2,127}$"`. See https://github.com/cosmos/cosmos-sdk/blob/7728516abfab950dc7a9120caad4870f1f962df5/types/coin.go#L865-L867
pub fn validate_denom(input: &str) -> StdResult<()> {
let re = Regex::new(r"^[a-zA-Z][a-zA-Z0-9/:._-]{2,127}$").unwrap();

Expand Down

0 comments on commit 9c4d575

Please sign in to comment.