btc-wallet 0.5.7-beta → 0.5.8-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3413,7 +3413,7 @@ function checkDepositDisabledAddress() {
3413
3413
  return;
3414
3414
  const addresses = JSON.parse(data);
3415
3415
  const address = addresses == null ? void 0 : addresses[0];
3416
- if (address.walletType === "ledger" && (address.addressType !== "p2wpkh" || address.addressType !== "p2sh")) {
3416
+ if (address.walletType === "ledger" && !["p2wpkh", "p2sh"].includes(address.addressType)) {
3417
3417
  throw new Error("Ledger is only supported for p2wpkh and p2sh address");
3418
3418
  }
3419
3419
  }
@@ -4486,7 +4486,7 @@ function setupBTCWallet({
4486
4486
 
4487
4487
  // src/index.ts
4488
4488
  var getVersion = () => {
4489
- return "0.5.7-beta";
4489
+ return "0.5.8-beta";
4490
4490
  };
4491
4491
  if (typeof window !== "undefined") {
4492
4492
  window.__BTC_WALLET_VERSION = getVersion();