btc-wallet 0.1.7 → 0.1.8
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 +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/esm/index.js
CHANGED
@@ -2547,7 +2547,6 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2547
2547
|
signAndSendTransaction,
|
2548
2548
|
signAndSendTransactions
|
2549
2549
|
};
|
2550
|
-
initWalletButton(options.network.networkId, wallet);
|
2551
2550
|
if (!inter) {
|
2552
2551
|
inter = setInterval(() => __async(void 0, null, function* () {
|
2553
2552
|
const btcContext = window.btcContext;
|
@@ -2557,7 +2556,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2557
2556
|
const context = btcContext.getContext();
|
2558
2557
|
context.on("updatePublicKey", (btcPublicKey) => __async(void 0, null, function* () {
|
2559
2558
|
const { nearTempAddress } = yield getNearAccountByBtcPublicKey(btcPublicKey);
|
2560
|
-
|
2559
|
+
initWalletButton(options.network.networkId, wallet);
|
2561
2560
|
emitter.emit("accountsChanged", {
|
2562
2561
|
accounts: [
|
2563
2562
|
{
|
@@ -2616,6 +2615,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2616
2615
|
const accountId = state.getAccount();
|
2617
2616
|
const publicKey = state.getPublicKey();
|
2618
2617
|
const btcContext = window.btcContext;
|
2618
|
+
initWalletButton(options.network.networkId, wallet);
|
2619
2619
|
if (accountId && publicKey) {
|
2620
2620
|
return [
|
2621
2621
|
{
|
@@ -2765,7 +2765,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2765
2765
|
setupWalletButton(network, wallet2, btcContext);
|
2766
2766
|
} else {
|
2767
2767
|
removeWalletButton();
|
2768
|
-
|
2768
|
+
setTimeout(() => {
|
2769
2769
|
checkAndSetupWalletButton();
|
2770
2770
|
}, 5e3);
|
2771
2771
|
}
|
@@ -2880,7 +2880,7 @@ function pollTransactionStatuses(network, hashes) {
|
|
2880
2880
|
|
2881
2881
|
// src/index.ts
|
2882
2882
|
var getVersion = () => {
|
2883
|
-
return "0.1.
|
2883
|
+
return "0.1.8";
|
2884
2884
|
};
|
2885
2885
|
if (typeof window !== "undefined") {
|
2886
2886
|
window.__PARTICLE_BTC_CONNECT_VERSION = getVersion();
|