@swype-org/react-sdk 0.1.95 → 0.1.96

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 CHANGED
@@ -830,8 +830,8 @@ async function checkServerForPasskeyByToken(authToken, apiBaseUrl, verificationT
830
830
  }
831
831
 
832
832
  // src/hooks.ts
833
- var WALLET_CLIENT_MAX_ATTEMPTS = 15;
834
- var WALLET_CLIENT_POLL_MS = 200;
833
+ var WALLET_CLIENT_MAX_ATTEMPTS = 25;
834
+ var WALLET_CLIENT_POLL_MS = 400;
835
835
  var ACTION_POLL_INTERVAL_MS = 500;
836
836
  var ACTION_POLL_MAX_RETRIES = 20;
837
837
  var SIGN_PERMIT2_POLL_MS = 1e3;
@@ -912,7 +912,9 @@ function resolvePasskeyRpId() {
912
912
  async function waitForWalletClient(wagmiConfig2, params = {}) {
913
913
  for (let i = 0; i < WALLET_CLIENT_MAX_ATTEMPTS; i++) {
914
914
  try {
915
- return await getWalletClient(wagmiConfig2, params);
915
+ const account = getAccount(wagmiConfig2);
916
+ const enrichedParams = account.connector ? { ...params, connector: account.connector } : params;
917
+ return await getWalletClient(wagmiConfig2, enrichedParams);
916
918
  } catch {
917
919
  if (i === WALLET_CLIENT_MAX_ATTEMPTS - 1) {
918
920
  throw new Error("Wallet not ready. Please try again.");