@wagmi/core 0.10.13 → 0.10.15

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.
@@ -3034,7 +3034,9 @@ function watchNetwork(callback, { selector = (x) => x } = {}) {
3034
3034
  import { shallow as shallow6 } from "zustand/shallow";
3035
3035
  function watchSigner({ chainId }, callback) {
3036
3036
  const client2 = getClient();
3037
- const handleChange = async () => {
3037
+ const handleChange = async ({ chainId: chainId_ }) => {
3038
+ if (chainId && chainId_ && chainId !== chainId_)
3039
+ return;
3038
3040
  const signer = await fetchSigner({ chainId });
3039
3041
  if (!getClient().connector)
3040
3042
  return callback(null);
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ import {
72
72
  watchSigner,
73
73
  watchWebSocketProvider,
74
74
  writeContract
75
- } from "./chunk-VQG3VKOR.js";
75
+ } from "./chunk-GISSYJN5.js";
76
76
  import {
77
77
  goerli,
78
78
  mainnet,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  debounce
3
- } from "../chunk-VQG3VKOR.js";
3
+ } from "../chunk-GISSYJN5.js";
4
4
  import "../chunk-BVC4KGLQ.js";
5
5
  import "../chunk-MQXBDTVK.js";
6
6
  export {
@@ -1,5 +1,5 @@
1
1
  import "../chunk-KX4UEHS5.js";
2
- import "../chunk-VQG3VKOR.js";
2
+ import "../chunk-GISSYJN5.js";
3
3
  import {
4
4
  foundry,
5
5
  goerli,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/core",
3
3
  "description": "Vanilla JS library for Ethereum",
4
4
  "license": "MIT",
5
- "version": "0.10.13",
5
+ "version": "0.10.15",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/wagmi-dev/wagmi.git",
@@ -119,7 +119,7 @@
119
119
  "eventemitter3": "^4.0.7",
120
120
  "zustand": "^4.3.1",
121
121
  "@wagmi/chains": "0.2.22",
122
- "@wagmi/connectors": "0.3.20"
122
+ "@wagmi/connectors": "0.3.21"
123
123
  },
124
124
  "devDependencies": {
125
125
  "ethers": "^5.7.1"