@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
package/dist/internal/index.js
CHANGED
package/dist/internal/test.js
CHANGED