@wagmi/connectors 0.1.8 → 0.1.9

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.
@@ -243,7 +243,7 @@ var InjectedConnector = class extends Connector {
243
243
  name: `Chain ${id}`,
244
244
  network: `${id}`,
245
245
  nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" },
246
- rpcUrls: { default: { http: [""] } }
246
+ rpcUrls: { default: { http: [""] }, public: { http: [""] } }
247
247
  };
248
248
  } catch (error) {
249
249
  const chain = this.chains.find((x) => x.id === chainId);
@@ -258,9 +258,7 @@ var InjectedConnector = class extends Connector {
258
258
  chainId: id,
259
259
  chainName: chain.name,
260
260
  nativeCurrency: chain.nativeCurrency,
261
- rpcUrls: [
262
- chain.rpcUrls.public?.http[0] ?? chain.rpcUrls.default.http[0] ?? ""
263
- ],
261
+ rpcUrls: [chain.rpcUrls.public?.http[0] ?? ""],
264
262
  blockExplorerUrls: this.getBlockExplorerUrls(chain)
265
263
  }
266
264
  ]
@@ -152,7 +152,7 @@ var CoinbaseWalletConnector = class extends Connector {
152
152
  name: `Chain ${id}`,
153
153
  network: `${id}`,
154
154
  nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" },
155
- rpcUrls: { default: { http: [""] } }
155
+ rpcUrls: { default: { http: [""] }, public: { http: [""] } }
156
156
  };
157
157
  } catch (error) {
158
158
  const chain = this.chains.find((x) => x.id === chainId);
@@ -167,9 +167,7 @@ var CoinbaseWalletConnector = class extends Connector {
167
167
  chainId: id,
168
168
  chainName: chain.name,
169
169
  nativeCurrency: chain.nativeCurrency,
170
- rpcUrls: [
171
- chain.rpcUrls.public?.http[0] ?? chain.rpcUrls.default.http[0]
172
- ],
170
+ rpcUrls: [chain.rpcUrls.public?.http[0] ?? ""],
173
171
  blockExplorerUrls: this.getBlockExplorerUrls(chain)
174
172
  }
175
173
  ]
package/dist/injected.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InjectedConnector
3
- } from "./chunk-5VSTPJLT.js";
3
+ } from "./chunk-YUNHZJBB.js";
4
4
  import "./chunk-5NCTPR6C.js";
5
5
  export {
6
6
  InjectedConnector
package/dist/metaMask.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InjectedConnector
3
- } from "./chunk-5VSTPJLT.js";
3
+ } from "./chunk-YUNHZJBB.js";
4
4
  import {
5
5
  __privateAdd,
6
6
  __privateGet,
@@ -197,7 +197,7 @@ switchChain_fn = async function(chainId) {
197
197
  name: `Chain ${chainId}`,
198
198
  network: `${chainId}`,
199
199
  nativeCurrency: { name: "Ether", decimals: 18, symbol: "ETH" },
200
- rpcUrls: { default: { http: [""] } }
200
+ rpcUrls: { default: { http: [""] }, public: { http: [""] } }
201
201
  };
202
202
  };
203
203
  export {
@@ -333,7 +333,7 @@ switchChain_fn = async function(chainId) {
333
333
  name: `Chain ${id}`,
334
334
  network: `${id}`,
335
335
  nativeCurrency: { decimals: 18, name: "Ether", symbol: "ETH" },
336
- rpcUrls: { default: { http: [""] } }
336
+ rpcUrls: { default: { http: [""] }, public: { http: [""] } }
337
337
  };
338
338
  } catch (error) {
339
339
  const message = typeof error === "string" ? error : error?.message;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/connectors",
3
3
  "description": "A collection of connectors for wagmi",
4
4
  "license": "MIT",
5
- "version": "0.1.8",
5
+ "version": "0.1.9",
6
6
  "peerDependencies": {
7
7
  "@wagmi/core": "0.8.x",
8
8
  "ethers": "^5.0.0"