@gearbox-protocol/sdk 3.0.0-vfour.338 → 3.0.0-vfour.339
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.
|
@@ -31,7 +31,7 @@ function createTransport(opts) {
|
|
|
31
31
|
return opts.transport;
|
|
32
32
|
}
|
|
33
33
|
const rpcs = opts.rpcURLs.map((url) => (0, import_viem.http)(url, { timeout, retryCount }));
|
|
34
|
-
return rpcs.length ? (0, import_viem.fallback)(rpcs) : rpcs[0];
|
|
34
|
+
return rpcs.length > 1 ? (0, import_viem.fallback)(rpcs) : rpcs[0];
|
|
35
35
|
}
|
|
36
36
|
class Provider {
|
|
37
37
|
chainId;
|
|
@@ -7,7 +7,7 @@ function createTransport(opts) {
|
|
|
7
7
|
return opts.transport;
|
|
8
8
|
}
|
|
9
9
|
const rpcs = opts.rpcURLs.map((url) => http(url, { timeout, retryCount }));
|
|
10
|
-
return rpcs.length ? fallback(rpcs) : rpcs[0];
|
|
10
|
+
return rpcs.length > 1 ? fallback(rpcs) : rpcs[0];
|
|
11
11
|
}
|
|
12
12
|
class Provider {
|
|
13
13
|
chainId;
|