diff --git a/centrifuge-app/src/utils/address.ts b/centrifuge-app/src/utils/address.ts new file mode 100644 index 0000000000..54a9e9371a --- /dev/null +++ b/centrifuge-app/src/utils/address.ts @@ -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 }