Skip to content

Commit

Permalink
Create utils.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Dec 7, 2024
1 parent 77c3edc commit a7078db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stablecoin/src/utils.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// src/utils.rs
pub fn validate_address(address: &str) -> bool {
// Simple validation logic for addresses
address.len() == 42 && address.starts_with("0x")
}

0 comments on commit a7078db

Please sign in to comment.