Skip to content

Commit

Permalink
fix: use more robust starknet address detection
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jul 3, 2024
1 parent 7a48d7c commit 7d9b620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ajv.addFormat('address', {
ajv.addFormat('evmOrStarknetAddress', {
validate: (value: string) => {
try {
return isAddress(value) || /^0x[0-9a-fA-F]{62,64}$/.test(value);
return isAddress(value) || isStarknetAddress(value);
} catch (err) {
return false;
}
Expand Down

0 comments on commit 7d9b620

Please sign in to comment.