btc-wallet 0.5.7-beta → 0.5.8-beta

Sign up to get free protection for your applications and to get access to all the features.
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();