Skip to content

Commit

Permalink
Merge pull request #102 from aurora-is-near/feat-accept-aurora-tld-near
Browse files Browse the repository at this point in the history
feat: accept aurora tld for near addresses
  • Loading branch information
diegofigs committed May 3, 2024
2 parents f7c34b7 + a5be4c3 commit 38bee1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-crabs-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aurora-is-near/backstage-plugin-blockchainradar-backend': patch
---

feat: accept aurora tld for near addresses
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class NearAdapter extends BlockchainAdapter {
isValidAddress(address: string): boolean {
return (
!!address.match(/\.near$/) ||
!!address.match(/\.aurora/) ||
!!address.match(/\.testnet$/) ||
!!address.match(/^[0-9a-fA-F]{64}$/) ||
address === 'aurora'
Expand Down

0 comments on commit 38bee1f

Please sign in to comment.