@multiversx/sdk-wallet
Advanced tools
Comparing version 4.5.0-beta.0 to 4.5.0-beta.1
@@ -24,8 +24,5 @@ "use strict"; | ||
const bech32 = __importStar(require("bech32")); | ||
const config_1 = require("./config"); | ||
const errors_1 = require("./errors"); | ||
/** | ||
* The human-readable-part of the bech32 addresses. | ||
*/ | ||
const DEFAULT_HRP = "erd"; | ||
/** | ||
* @internal | ||
@@ -37,3 +34,3 @@ * For internal use only. | ||
this.buffer = buffer; | ||
this.hrp = hrp || DEFAULT_HRP; | ||
this.hrp = hrp || config_1.LibraryConfig.DefaultAddressHrp; | ||
} | ||
@@ -104,3 +101,3 @@ static newFromBech32(value) { | ||
// Workaround, in order to avoid behavioral breaking changes on legacy flows. | ||
if (!allowCustomHrp && hrp != DEFAULT_HRP) { | ||
if (!allowCustomHrp && hrp != config_1.LibraryConfig.DefaultAddressHrp) { | ||
throw new errors_1.ErrBadAddress(value); | ||
@@ -107,0 +104,0 @@ } |
{ | ||
"name": "@multiversx/sdk-wallet", | ||
"version": "4.5.0-beta.0", | ||
"version": "4.5.0-beta.1", | ||
"description": "Wallet components for MultiversX", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87072
75
1453