btc-wallet 0.5.73-beta → 0.5.75-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/core/setupModal.d.ts +1 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +2 -2
- package/esm/index.js +6 -4
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/esm/index.js
CHANGED
@@ -3799,8 +3799,8 @@ function getBtcGasPrice() {
|
|
3799
3799
|
try {
|
3800
3800
|
const btcRpcUrl = yield getBtcRpcUrl();
|
3801
3801
|
const res = yield fetch(`${btcRpcUrl}/v1/fees/recommended`).then((res2) => res2.json());
|
3802
|
-
const feeRate = res.fastestFee;
|
3803
|
-
return feeRate
|
3802
|
+
const feeRate = res.fastestFee ? Number(res.fastestFee) + 1 : defaultFeeRate;
|
3803
|
+
return feeRate;
|
3804
3804
|
} catch (error) {
|
3805
3805
|
return defaultFeeRate;
|
3806
3806
|
}
|
@@ -5123,6 +5123,7 @@ function setupWalletSelectorModal(selector, options) {
|
|
5123
5123
|
const {
|
5124
5124
|
showChainGroups = true,
|
5125
5125
|
showWalletUIForNearAccount = true,
|
5126
|
+
hideWalletUIForNearWallets = ["meteor-wallet-app"],
|
5126
5127
|
env = "mainnet",
|
5127
5128
|
walletUrl,
|
5128
5129
|
draggable = true,
|
@@ -5137,8 +5138,9 @@ function setupWalletSelectorModal(selector, options) {
|
|
5137
5138
|
const walletId = state2.selectedWalletId;
|
5138
5139
|
window.enableCustomWalletSelectorModal = true;
|
5139
5140
|
console.log("setupWalletSelectorModal walletId", walletId);
|
5141
|
+
const showWalletUI = walletId && (walletId === "btc-wallet" || showWalletUIForNearAccount && !hideWalletUIForNearWallets.includes(walletId));
|
5140
5142
|
removeWalletButton();
|
5141
|
-
if (
|
5143
|
+
if (showWalletUI) {
|
5142
5144
|
selector.wallet().then((wallet) => {
|
5143
5145
|
setupWalletButton({
|
5144
5146
|
env,
|
@@ -5241,7 +5243,7 @@ function getGroup(state) {
|
|
5241
5243
|
|
5242
5244
|
// src/index.ts
|
5243
5245
|
var getVersion = () => {
|
5244
|
-
return "0.5.
|
5246
|
+
return "0.5.75-beta";
|
5245
5247
|
};
|
5246
5248
|
if (typeof window !== "undefined") {
|
5247
5249
|
window.__BTC_WALLET_VERSION = getVersion();
|