@latticexyz/entrykit 2.2.22-504def97a7c4d34bc80557316a590f5314ab01c2 → 2.2.22-5669ab13e650f496a60c780983866778ae8943a3

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.
@@ -191,14 +191,23 @@ function userOpExecutor({ executor }) {
191
191
  // src/getBundlerTransport.ts
192
192
  import { wiresaw } from "@latticexyz/common/internal";
193
193
  function getBundlerTransport(chain) {
194
+ const ethRpcUrl = chain.rpcUrls.default.http[0];
194
195
  const bundlerHttpUrl = chain.rpcUrls.bundler?.http[0];
195
196
  const wiresawWebSocketUrl = chain.rpcUrls.wiresaw?.webSocket?.[0];
196
197
  if (wiresawWebSocketUrl) {
197
- return wiresaw({ wiresaw: webSocket(wiresawWebSocketUrl), fallbackBundler: http(bundlerHttpUrl) });
198
+ return wiresaw({
199
+ wiresaw: webSocket(wiresawWebSocketUrl),
200
+ fallbackBundler: http(bundlerHttpUrl),
201
+ fallbackEth: http(ethRpcUrl)
202
+ });
198
203
  }
199
204
  const wiresawHttpUrl = chain.rpcUrls.wiresaw?.http[0];
200
205
  if (wiresawHttpUrl) {
201
- return wiresaw({ wiresaw: http(wiresawHttpUrl), fallbackBundler: http(bundlerHttpUrl) });
206
+ return wiresaw({
207
+ wiresaw: http(wiresawHttpUrl),
208
+ fallbackBundler: http(bundlerHttpUrl),
209
+ fallbackEth: http(ethRpcUrl)
210
+ });
202
211
  }
203
212
  if (bundlerHttpUrl) {
204
213
  return http(bundlerHttpUrl);