@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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -82,7 +82,7 @@ var wagmiConfig = createConfig({
|
|
|
82
82
|
[mainnet.id]: http(),
|
|
83
83
|
[arbitrum.id]: http(),
|
|
84
84
|
[base.id]: http(),
|
|
85
|
-
[polygon.id]: http(),
|
|
85
|
+
[polygon.id]: http("https://polygon-bor-rpc.publicnode.com"),
|
|
86
86
|
[bsc.id]: http(),
|
|
87
87
|
[baseSepolia.id]: http()
|
|
88
88
|
}
|
|
@@ -9437,13 +9437,14 @@ function useGuestTransferHandlers(deps) {
|
|
|
9437
9437
|
from: sender,
|
|
9438
9438
|
to: bridgeStep.to,
|
|
9439
9439
|
data: bridgeStep.data,
|
|
9440
|
-
value: bridgeStep.value
|
|
9440
|
+
value: `0x${BigInt(bridgeStep.value || "0").toString(16)}`
|
|
9441
9441
|
}]
|
|
9442
9442
|
});
|
|
9443
9443
|
console.info(`[blink-sdk] type=guest Bridge step ${stepIdx + 1} tx sent: ${txHash}`);
|
|
9444
9444
|
setBridgePhase("sending");
|
|
9445
9445
|
await waitForTransactionReceipt(wagmiConfig2, {
|
|
9446
|
-
hash: txHash
|
|
9446
|
+
hash: txHash,
|
|
9447
|
+
timeout: 6e4
|
|
9447
9448
|
});
|
|
9448
9449
|
lastTxHash = txHash;
|
|
9449
9450
|
}
|
|
@@ -10063,7 +10064,6 @@ function useDataLoadEffect(deps) {
|
|
|
10063
10064
|
]);
|
|
10064
10065
|
useEffect(() => {
|
|
10065
10066
|
if (authenticated || state.providers.length > 0) return;
|
|
10066
|
-
if (state.activeCredentialId) return;
|
|
10067
10067
|
let cancelled = false;
|
|
10068
10068
|
const loadProviders = async () => {
|
|
10069
10069
|
try {
|
|
@@ -10086,7 +10086,7 @@ function useDataLoadEffect(deps) {
|
|
|
10086
10086
|
return () => {
|
|
10087
10087
|
cancelled = true;
|
|
10088
10088
|
};
|
|
10089
|
-
}, [authenticated, state.providers.length,
|
|
10089
|
+
}, [authenticated, state.providers.length, apiBaseUrl]);
|
|
10090
10090
|
useEffect(() => {
|
|
10091
10091
|
if (state.accounts.length > 0 && state.activeCredentialId && !state.loadingData && !state.transfer && authenticated && Date.now() - lastAccountFetchRef.current > 15e3) {
|
|
10092
10092
|
lastAccountFetchRef.current = Date.now();
|