Skip to content

Commit

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

0 comments on commit 19daeca

Please sign in to comment.