Skip to content

Commit

Permalink
add util
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser committed Jan 18, 2024
1 parent 23edd08 commit d37b8a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions centrifuge-app/src/utils/address.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { isAddress as isEvmAddress } from '@ethersproject/address'
import { isAddress } from '@polkadot/util-crypto'

export function isSubstrateAddress(address: string) {
return isAddress(address) && !isEvmAddress(address)
}

export { isEvmAddress }

0 comments on commit d37b8a0

Please sign in to comment.