@wagmi/core 1.0.2 → 1.0.3

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.
@@ -2012,7 +2012,9 @@ function watchPublicClient(args, callback) {
2012
2012
  import { shallow } from "zustand/shallow";
2013
2013
  function watchWalletClient({ chainId }, callback) {
2014
2014
  const config2 = getConfig();
2015
- const handleChange = async () => {
2015
+ const handleChange = async ({ chainId: chainId_ }) => {
2016
+ if (chainId && chainId_ && chainId !== chainId_)
2017
+ return;
2016
2018
  const walletClient = await getWalletClient({ chainId });
2017
2019
  if (!getConfig().connector)
2018
2020
  return callback(null);
package/dist/index.js CHANGED
@@ -58,7 +58,7 @@ import {
58
58
  watchWalletClient,
59
59
  watchWebSocketPublicClient,
60
60
  writeContract
61
- } from "./chunk-VEUO7GWU.js";
61
+ } from "./chunk-5YWOYJSV.js";
62
62
  import {
63
63
  mainnet,
64
64
  sepolia
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getCallParameters,
3
3
  getSendTransactionParameters
4
- } from "../chunk-VEUO7GWU.js";
4
+ } from "../chunk-5YWOYJSV.js";
5
5
  import "../chunk-BVC4KGLQ.js";
6
6
  import "../chunk-MQXBDTVK.js";
7
7
  export {
@@ -1,5 +1,5 @@
1
1
  import "../chunk-KX4UEHS5.js";
2
- import "../chunk-VEUO7GWU.js";
2
+ import "../chunk-5YWOYJSV.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": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/wagmi-dev/wagmi.git",