btc-wallet 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +4 -4
- package/dist/index.js.map +2 -2
- package/esm/index.js +4 -4
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2588,7 +2588,6 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2588
2588
|
signAndSendTransaction,
|
2589
2589
|
signAndSendTransactions
|
2590
2590
|
};
|
2591
|
-
initWalletButton(options.network.networkId, wallet);
|
2592
2591
|
if (!inter) {
|
2593
2592
|
inter = setInterval(() => __async(void 0, null, function* () {
|
2594
2593
|
const btcContext = window.btcContext;
|
@@ -2598,7 +2597,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2598
2597
|
const context = btcContext.getContext();
|
2599
2598
|
context.on("updatePublicKey", (btcPublicKey) => __async(void 0, null, function* () {
|
2600
2599
|
const { nearTempAddress } = yield getNearAccountByBtcPublicKey(btcPublicKey);
|
2601
|
-
|
2600
|
+
initWalletButton(options.network.networkId, wallet);
|
2602
2601
|
emitter.emit("accountsChanged", {
|
2603
2602
|
accounts: [
|
2604
2603
|
{
|
@@ -2657,6 +2656,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2657
2656
|
const accountId = state.getAccount();
|
2658
2657
|
const publicKey = state.getPublicKey();
|
2659
2658
|
const btcContext = window.btcContext;
|
2659
|
+
initWalletButton(options.network.networkId, wallet);
|
2660
2660
|
if (accountId && publicKey) {
|
2661
2661
|
return [
|
2662
2662
|
{
|
@@ -2806,7 +2806,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2806
2806
|
setupWalletButton(network, wallet2, btcContext);
|
2807
2807
|
} else {
|
2808
2808
|
removeWalletButton();
|
2809
|
-
|
2809
|
+
setTimeout(() => {
|
2810
2810
|
checkAndSetupWalletButton();
|
2811
2811
|
}, 5e3);
|
2812
2812
|
}
|
@@ -2921,7 +2921,7 @@ function pollTransactionStatuses(network, hashes) {
|
|
2921
2921
|
|
2922
2922
|
// src/index.ts
|
2923
2923
|
var getVersion = () => {
|
2924
|
-
return "0.1.
|
2924
|
+
return "0.1.8";
|
2925
2925
|
};
|
2926
2926
|
if (typeof window !== "undefined") {
|
2927
2927
|
window.__PARTICLE_BTC_CONNECT_VERSION = getVersion();
|