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 +2 -2
- package/dist/index.js.map +2 -2
- package/esm/index.js +2 -2
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/esm/index.js
CHANGED
@@ -3363,7 +3363,7 @@ function checkDepositDisabledAddress() {
|
|
3363
3363
|
return;
|
3364
3364
|
const addresses = JSON.parse(data);
|
3365
3365
|
const address = addresses == null ? void 0 : addresses[0];
|
3366
|
-
if (address.walletType === "ledger" &&
|
3366
|
+
if (address.walletType === "ledger" && !["p2wpkh", "p2sh"].includes(address.addressType)) {
|
3367
3367
|
throw new Error("Ledger is only supported for p2wpkh and p2sh address");
|
3368
3368
|
}
|
3369
3369
|
}
|
@@ -4436,7 +4436,7 @@ function setupBTCWallet({
|
|
4436
4436
|
|
4437
4437
|
// src/index.ts
|
4438
4438
|
var getVersion = () => {
|
4439
|
-
return "0.5.
|
4439
|
+
return "0.5.8-beta";
|
4440
4440
|
};
|
4441
4441
|
if (typeof window !== "undefined") {
|
4442
4442
|
window.__BTC_WALLET_VERSION = getVersion();
|