diff --git a/CHANGELOG.md b/CHANGELOG.md index 9673aabaa..f8c03e676 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [[v2.40.7]](https://github.com/multiversx/mx-sdk-dapp/pull/1267)] - 2024-09-23 +- [Remove hardcoded "erd" check when validating an address](https://github.com/multiversx/mx-sdk-dapp/pull/1267) + ## [[v2.40.6]](https://github.com/multiversx/mx-sdk-dapp/pull/1266)] - 2024-09-20 - [Update passkey provider in order to fix passkey login](https://github.com/multiversx/mx-sdk-dapp/pull/1266) diff --git a/package.json b/package.json index 756eb7d4e..6c6daf7ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-dapp", - "version": "2.40.6", + "version": "2.40.7", "description": "A library to hold the main logic for a dapp on the MultiversX blockchain", "author": "MultiversX", "license": "GPL-3.0-or-later", diff --git a/src/utils/account/addressIsValid.ts b/src/utils/account/addressIsValid.ts index 6b877bcfb..d6a3a5249 100644 --- a/src/utils/account/addressIsValid.ts +++ b/src/utils/account/addressIsValid.ts @@ -11,9 +11,7 @@ function canTransformToPublicKey(address: string) { export function addressIsValid(destinationAddress: string) { const isValidBach = - destinationAddress?.startsWith('erd') && - destinationAddress.length === 62 && - /^\w+$/.test(destinationAddress); + destinationAddress.length === 62 && /^\w+$/.test(destinationAddress); return isValidBach && canTransformToPublicKey(destinationAddress); }