@swype-org/react-sdk 0.2.23 → 0.2.26

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
@@ -85,7 +85,7 @@ var wagmiConfig = wagmi.createConfig({
85
85
  [chains.mainnet.id]: wagmi.http(),
86
86
  [chains.arbitrum.id]: wagmi.http(),
87
87
  [chains.base.id]: wagmi.http(),
88
- [chains.polygon.id]: wagmi.http(),
88
+ [chains.polygon.id]: wagmi.http("https://polygon-bor-rpc.publicnode.com"),
89
89
  [chains.bsc.id]: wagmi.http(),
90
90
  [chains.baseSepolia.id]: wagmi.http()
91
91
  }
@@ -9440,13 +9440,14 @@ function useGuestTransferHandlers(deps) {
9440
9440
  from: sender,
9441
9441
  to: bridgeStep.to,
9442
9442
  data: bridgeStep.data,
9443
- value: bridgeStep.value
9443
+ value: `0x${BigInt(bridgeStep.value || "0").toString(16)}`
9444
9444
  }]
9445
9445
  });
9446
9446
  console.info(`[blink-sdk] type=guest Bridge step ${stepIdx + 1} tx sent: ${txHash}`);
9447
9447
  setBridgePhase("sending");
9448
9448
  await core.waitForTransactionReceipt(wagmiConfig2, {
9449
- hash: txHash
9449
+ hash: txHash,
9450
+ timeout: 6e4
9450
9451
  });
9451
9452
  lastTxHash = txHash;
9452
9453
  }
@@ -10066,7 +10067,6 @@ function useDataLoadEffect(deps) {
10066
10067
  ]);
10067
10068
  react.useEffect(() => {
10068
10069
  if (authenticated || state.providers.length > 0) return;
10069
- if (state.activeCredentialId) return;
10070
10070
  let cancelled = false;
10071
10071
  const loadProviders = async () => {
10072
10072
  try {
@@ -10089,7 +10089,7 @@ function useDataLoadEffect(deps) {
10089
10089
  return () => {
10090
10090
  cancelled = true;
10091
10091
  };
10092
- }, [authenticated, state.providers.length, state.activeCredentialId, apiBaseUrl]);
10092
+ }, [authenticated, state.providers.length, apiBaseUrl]);
10093
10093
  react.useEffect(() => {
10094
10094
  if (state.accounts.length > 0 && state.activeCredentialId && !state.loadingData && !state.transfer && authenticated && Date.now() - lastAccountFetchRef.current > 15e3) {
10095
10095
  lastAccountFetchRef.current = Date.now();