@wagmi/core 0.8.0 → 0.8.1
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.
- package/dist/{chunk-VCRGL4ZG.js → chunk-SK7UQXOC.js} +1 -1
- package/dist/{chunk-F4A7FMUQ.js → chunk-TQC2HCNN.js} +7 -7
- package/dist/connectors/coinbaseWallet.js +1 -1
- package/dist/connectors/metaMask.js +1 -1
- package/dist/connectors/mock/index.js +2 -2
- package/dist/connectors/walletConnect.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/test.js +2 -2
- package/package.json +1 -1
|
@@ -807,8 +807,8 @@ var Client = class {
|
|
|
807
807
|
let chainId;
|
|
808
808
|
if (autoConnect) {
|
|
809
809
|
try {
|
|
810
|
-
const rawState = storage.getItem(storeKey
|
|
811
|
-
const data =
|
|
810
|
+
const rawState = storage.getItem(storeKey);
|
|
811
|
+
const data = rawState?.state?.data;
|
|
812
812
|
status = data?.account ? "reconnecting" : "connecting";
|
|
813
813
|
chainId = data?.chain?.id;
|
|
814
814
|
} catch (_error) {
|
|
@@ -3249,11 +3249,11 @@ async function signTypedData({
|
|
|
3249
3249
|
const chainId = chainId_ ? normalizeChainId(chainId_) : void 0;
|
|
3250
3250
|
if (chainId)
|
|
3251
3251
|
assertActiveChain({ chainId, signer });
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
);
|
|
3252
|
+
const types_ = Object.entries(types).filter(([key]) => key !== "EIP712Domain").reduce((types2, [key, attributes]) => {
|
|
3253
|
+
types2[key] = attributes.filter((attr) => attr.type !== "EIP712Domain");
|
|
3254
|
+
return types2;
|
|
3255
|
+
}, {});
|
|
3256
|
+
return signer._signTypedData(domain, types_, value);
|
|
3257
3257
|
}
|
|
3258
3258
|
|
|
3259
3259
|
// src/actions/accounts/switchNetwork.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MockConnector,
|
|
3
3
|
MockProvider
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-SK7UQXOC.js";
|
|
5
|
+
import "../../chunk-TQC2HCNN.js";
|
|
6
6
|
import "../../chunk-6KG5TOAU.js";
|
|
7
7
|
import "../../chunk-MQXBDTVK.js";
|
|
8
8
|
export {
|
package/dist/index.js
CHANGED
package/dist/internal/index.js
CHANGED
package/dist/internal/test.js
CHANGED