@kimafinance/kima-transaction-widget 1.2.18-beta.1 → 1.2.19-beta.1
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 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2221,6 +2221,7 @@ function useIsWalletReady() {
|
|
|
2221
2221
|
}
|
|
2222
2222
|
}, [events]);
|
|
2223
2223
|
React.useEffect(function () {
|
|
2224
|
+
if (sourceChain !== exports.SupportNetworks.BTC) return;
|
|
2224
2225
|
var runCapabilityCheck = function runCapabilityCheck() {
|
|
2225
2226
|
try {
|
|
2226
2227
|
var runs = 0;
|
|
@@ -2231,12 +2232,13 @@ function useIsWalletReady() {
|
|
|
2231
2232
|
}, void 0, function () {
|
|
2232
2233
|
function _temp2() {
|
|
2233
2234
|
return Promise.resolve(new Promise(function (resolve) {
|
|
2234
|
-
return setTimeout(resolve,
|
|
2235
|
+
return setTimeout(resolve, 10000);
|
|
2235
2236
|
})).then(function () {});
|
|
2236
2237
|
}
|
|
2237
2238
|
var _temp = _catch(function () {
|
|
2238
2239
|
return Promise.resolve(satsConnect.getCapabilities({
|
|
2239
2240
|
onFinish: function onFinish(response) {
|
|
2241
|
+
console.log(response);
|
|
2240
2242
|
setCapabilities(new Set(response));
|
|
2241
2243
|
setCapabilityState('loaded');
|
|
2242
2244
|
},
|
|
@@ -2263,7 +2265,7 @@ function useIsWalletReady() {
|
|
|
2263
2265
|
}
|
|
2264
2266
|
};
|
|
2265
2267
|
runCapabilityCheck();
|
|
2266
|
-
}, []);
|
|
2268
|
+
}, [sourceChain]);
|
|
2267
2269
|
var connectBitcoinWallet = React.useCallback(function () {
|
|
2268
2270
|
try {
|
|
2269
2271
|
return Promise.resolve(satsConnect.getAddress({
|