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