@matchain/matchid-sdk-react 0.1.55-alpha.10 → 0.1.55-alpha.12
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/api.d.mts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.mjs +2 -2
- package/dist/assets/lottie.d.mts +1 -1
- package/dist/assets/lottie.d.ts +1 -1
- package/dist/chains.d.mts +1 -1
- package/dist/chains.d.ts +1 -1
- package/dist/{chunk-5WFY6MWJ.mjs → chunk-BZ2PI27T.mjs} +9 -4
- package/dist/{chunk-5WFY6MWJ.mjs.map → chunk-BZ2PI27T.mjs.map} +1 -1
- package/dist/{chunk-JTNCYI5F.mjs → chunk-LEFO352N.mjs} +2 -2
- package/dist/components.d.mts +3 -3
- package/dist/components.d.ts +3 -3
- package/dist/components.js +8 -3
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/hooks.d.mts +4 -2
- package/dist/hooks.d.ts +4 -2
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/icon.d.mts +2 -2
- package/dist/icon.d.ts +2 -2
- package/dist/{index-BjdOd1te.d.mts → index--EI6w9pi.d.mts} +984 -978
- package/dist/{index-Bx7ztInz.d.ts → index-4dZbgWG2.d.ts} +1 -1
- package/dist/{index-Ba8t2zs6.d.mts → index-B4lczvhL.d.mts} +2 -2
- package/dist/{index-DXRGMAbv.d.mts → index-B50DU_xT.d.mts} +4 -4
- package/dist/{index-DXRGMAbv.d.ts → index-B50DU_xT.d.ts} +4 -4
- package/dist/{index-BTO2pJRz.d.ts → index-B80rDuha.d.ts} +1 -1
- package/dist/{index-DY5CjOq2.d.ts → index-BBghnVDr.d.ts} +1 -1
- package/dist/{index-DL0LMDQ0.d.mts → index-C14uKUDG.d.mts} +2 -2
- package/dist/{index-DysgDUCb.d.mts → index-CDTTHSh0.d.mts} +14 -14
- package/dist/{index-DysgDUCb.d.ts → index-CDTTHSh0.d.ts} +14 -14
- package/dist/{index-HYPgwvkU.d.mts → index-CHtFnnZk.d.mts} +1 -1
- package/dist/{index-DueNjDv_.d.ts → index-Cl0JpAc1.d.ts} +984 -978
- package/dist/{index-CopoHLm5.d.ts → index-CwHXzvvB.d.ts} +1 -1
- package/dist/{index-8h2kA48e.d.ts → index-DGbpUvkd.d.ts} +2 -2
- package/dist/{index-BW1GRpQ3.d.mts → index-FKxw4Vaa.d.mts} +1 -1
- package/dist/{index-D6wTVWuu.d.mts → index-QPdWAVPk.d.mts} +1 -1
- package/dist/{index-D2hhRO2j.d.mts → index-TjbO7d74.d.mts} +1 -1
- package/dist/{index-B-u8_Lcy.d.ts → index-UJfUO0uH.d.ts} +2 -2
- package/dist/index.d.mts +18 -17
- package/dist/index.d.ts +18 -17
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{types-Ch54HuTY.d.mts → types-DEsY_CPH.d.mts} +1 -1
- package/dist/{types-Ch54HuTY.d.ts → types-DEsY_CPH.d.ts} +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui.d.mts +3 -3
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-JTNCYI5F.mjs.map → chunk-LEFO352N.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query/src/types';
|
|
3
|
-
import { w as PohZkpassParams, r as UserTransactionType, x as UserTransactionNextPageParams, y as WalletAssetType, z as MetaPageType, F as BindItemType, G as BindInfoType, J as PohItemType, p as UserChainType, t as UserAssetToken, s as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-
|
|
3
|
+
import { w as PohZkpassParams, r as UserTransactionType, x as UserTransactionNextPageParams, y as WalletAssetType, z as MetaPageType, F as BindItemType, G as BindInfoType, J as PohItemType, p as UserChainType, t as UserAssetToken, s as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-DEsY_CPH.js';
|
|
4
4
|
import { M as MyResponseType, i as isSuccess } from './request-B0CyrGFT.js';
|
|
5
5
|
|
|
6
6
|
declare const bindCexApi: (data: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps, g as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-
|
|
3
|
-
import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-
|
|
2
|
+
import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps, g as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-DEsY_CPH.js';
|
|
3
|
+
import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-B80rDuha.js';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-
|
|
1
|
+
import { A as Address, q as AnyObject, Q as AppConfigType, S as AuthParams, G as BindInfoType, F as BindItemType, T as BindWalletParam, B as ButtonProps, C as CEXType, o as ChainType, V as DeepPartial, D as DrawerProps, E as EmailModalProps, X as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, Y as IEnvName, Z as ILoginWalletReq, I as IMatchEvents, l as ISocialLoginMethod, v as IconProps, i as InputProps, L as LocaleType, b as LoginBoxProps, n as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, _ as MessageType, z as MetaPageType, j as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, m as OverviewInfo, J as PohItemType, w as PohZkpassParams, P as PopoverPositionType, k as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, $ as RecoveryType, a0 as ThemeType, U as UIProps, t as UserAssetToken, p as UserChainType, s as UserImportTokenType, a1 as UserPopoverProps, x as UserTransactionNextPageParams, a2 as UserTransactionRecordType, r as UserTransactionType, g as WalletAssetMergeType, y as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletNFTType, h as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from './types-DEsY_CPH.mjs';
|
|
2
2
|
|
|
3
3
|
declare const index_Address: typeof Address;
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React, { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
-
import { i as InputProps, B as ButtonProps, j as ModalProps, M as ModalWithHeaderProps, k as PopoverProps } from './types-
|
|
3
|
+
import { i as InputProps, B as ButtonProps, j as ModalProps, M as ModalWithHeaderProps, k as PopoverProps } from './types-DEsY_CPH.mjs';
|
|
4
4
|
|
|
5
5
|
declare function Field({ label, children, error, required, className }: {
|
|
6
6
|
label: ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query/src/types';
|
|
3
|
-
import { w as PohZkpassParams, r as UserTransactionType, x as UserTransactionNextPageParams, y as WalletAssetType, z as MetaPageType, F as BindItemType, G as BindInfoType, J as PohItemType, p as UserChainType, t as UserAssetToken, s as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-
|
|
3
|
+
import { w as PohZkpassParams, r as UserTransactionType, x as UserTransactionNextPageParams, y as WalletAssetType, z as MetaPageType, F as BindItemType, G as BindInfoType, J as PohItemType, p as UserChainType, t as UserAssetToken, s as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-DEsY_CPH.mjs';
|
|
4
4
|
import { M as MyResponseType, i as isSuccess } from './request-B0CyrGFT.mjs';
|
|
5
5
|
|
|
6
6
|
declare const bindCexApi: (data: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-
|
|
1
|
+
import { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-B80rDuha.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { D as DrawerProps, h as WalletPanelProps, U as UIProps } from './types-
|
|
3
|
+
import { D as DrawerProps, h as WalletPanelProps, U as UIProps } from './types-DEsY_CPH.js';
|
|
4
4
|
import { Hash, Chain } from 'viem';
|
|
5
5
|
import React, { CSSProperties } from 'react';
|
|
6
6
|
import { LottieComponentProps } from 'lottie-react';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import * as wagmi from 'wagmi';
|
|
2
2
|
import * as _rainbow_me_rainbowkit_dist_config_getDefaultConfig from '@rainbow-me/rainbowkit/dist/config/getDefaultConfig';
|
|
3
|
-
import * as viem_chains from 'viem/chains';
|
|
4
3
|
import * as abitype from 'abitype';
|
|
5
4
|
import * as wagmi_chains from 'wagmi/chains';
|
|
6
5
|
import * as viem from 'viem';
|
|
7
6
|
import React, { ReactNode } from 'react';
|
|
8
|
-
import { I as IMatchEvents,
|
|
9
|
-
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index
|
|
10
|
-
export { i as Components } from './index-
|
|
11
|
-
export { i as UI } from './index-
|
|
12
|
-
export { i as Api } from './index-
|
|
13
|
-
export { i as Chains } from './index-
|
|
14
|
-
export { i as Types } from './index-
|
|
15
|
-
export { i as Icon } from './index-
|
|
16
|
-
export { i as Lottie } from './index-
|
|
7
|
+
import { I as IMatchEvents, L as LocaleType, a as IEnvConfigType, W as WalletConfigType } from './types-DEsY_CPH.mjs';
|
|
8
|
+
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index--EI6w9pi.mjs';
|
|
9
|
+
export { i as Components } from './index-C14uKUDG.mjs';
|
|
10
|
+
export { i as UI } from './index-B4lczvhL.mjs';
|
|
11
|
+
export { i as Api } from './index-TjbO7d74.mjs';
|
|
12
|
+
export { i as Chains } from './index-B50DU_xT.mjs';
|
|
13
|
+
export { i as Types } from './index-FKxw4Vaa.mjs';
|
|
14
|
+
export { i as Icon } from './index-CHtFnnZk.mjs';
|
|
15
|
+
export { i as Lottie } from './index-CDTTHSh0.mjs';
|
|
17
16
|
import '@tanstack/react-query/src/types';
|
|
18
17
|
import './request-B0CyrGFT.mjs';
|
|
19
18
|
import 'viem/types/misc';
|
|
20
19
|
import 'react/jsx-runtime';
|
|
21
20
|
import 'viem/_types/actions/siwe/verifySiweMessage';
|
|
21
|
+
import 'viem/_types/utils/ccip';
|
|
22
|
+
import 'viem/chains';
|
|
22
23
|
import '@tanstack/react-query';
|
|
23
|
-
import './index-
|
|
24
|
+
import './index-QPdWAVPk.mjs';
|
|
24
25
|
import 'lottie-react';
|
|
25
26
|
|
|
26
27
|
declare const wagmiConfig: wagmi.Config<[{
|
|
@@ -187,7 +188,7 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
187
188
|
stateRoot: viem.Hash;
|
|
188
189
|
timestamp: bigint;
|
|
189
190
|
totalDifficulty: bigint | null;
|
|
190
|
-
transactions: `0x${string}`[] |
|
|
191
|
+
transactions: `0x${string}`[] | wagmi_chains.OpStackTransaction<boolean>[];
|
|
191
192
|
transactionsRoot: viem.Hash;
|
|
192
193
|
uncles: viem.Hash[];
|
|
193
194
|
withdrawals?: viem.Withdrawal[] | undefined;
|
|
@@ -485,7 +486,7 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
485
486
|
stateRoot: viem.Hash;
|
|
486
487
|
timestamp: bigint;
|
|
487
488
|
totalDifficulty: bigint | null;
|
|
488
|
-
transactions: `0x${string}`[] |
|
|
489
|
+
transactions: `0x${string}`[] | wagmi_chains.OpStackTransaction<boolean>[];
|
|
489
490
|
transactionsRoot: viem.Hash;
|
|
490
491
|
uncles: viem.Hash[];
|
|
491
492
|
withdrawals?: viem.Withdrawal[] | undefined;
|
|
@@ -686,8 +687,8 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
686
687
|
readonly http: readonly ["https://rpc.matchain.io"];
|
|
687
688
|
};
|
|
688
689
|
};
|
|
689
|
-
sourceId?: number | undefined;
|
|
690
|
-
testnet?: boolean | undefined;
|
|
690
|
+
sourceId?: number | undefined | undefined;
|
|
691
|
+
testnet?: boolean | undefined | undefined;
|
|
691
692
|
custom?: Record<string, unknown> | undefined;
|
|
692
693
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
693
694
|
formatters?: undefined;
|
|
@@ -726,8 +727,8 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
726
727
|
readonly http: readonly ["https://testnet-rpc.matchain.io"];
|
|
727
728
|
};
|
|
728
729
|
};
|
|
729
|
-
sourceId?: number | undefined;
|
|
730
|
-
testnet?: boolean | undefined;
|
|
730
|
+
sourceId?: number | undefined | undefined;
|
|
731
|
+
testnet?: boolean | undefined | undefined;
|
|
731
732
|
custom?: Record<string, unknown> | undefined;
|
|
732
733
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
733
734
|
formatters?: undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import * as wagmi from 'wagmi';
|
|
2
2
|
import * as _rainbow_me_rainbowkit_dist_config_getDefaultConfig from '@rainbow-me/rainbowkit/dist/config/getDefaultConfig';
|
|
3
|
-
import * as viem_chains from 'viem/chains';
|
|
4
3
|
import * as abitype from 'abitype';
|
|
5
4
|
import * as wagmi_chains from 'wagmi/chains';
|
|
6
5
|
import * as viem from 'viem';
|
|
7
6
|
import React, { ReactNode } from 'react';
|
|
8
|
-
import { I as IMatchEvents,
|
|
9
|
-
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-
|
|
10
|
-
export { i as Components } from './index-
|
|
11
|
-
export { i as UI } from './index-
|
|
12
|
-
export { i as Api } from './index-
|
|
13
|
-
export { i as Chains } from './index-
|
|
14
|
-
export { i as Types } from './index-
|
|
15
|
-
export { i as Icon } from './index-
|
|
16
|
-
export { i as Lottie } from './index-
|
|
7
|
+
import { I as IMatchEvents, L as LocaleType, a as IEnvConfigType, W as WalletConfigType } from './types-DEsY_CPH.js';
|
|
8
|
+
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-Cl0JpAc1.js';
|
|
9
|
+
export { i as Components } from './index-DGbpUvkd.js';
|
|
10
|
+
export { i as UI } from './index-UJfUO0uH.js';
|
|
11
|
+
export { i as Api } from './index-CwHXzvvB.js';
|
|
12
|
+
export { i as Chains } from './index-B50DU_xT.js';
|
|
13
|
+
export { i as Types } from './index-4dZbgWG2.js';
|
|
14
|
+
export { i as Icon } from './index-BBghnVDr.js';
|
|
15
|
+
export { i as Lottie } from './index-CDTTHSh0.js';
|
|
17
16
|
import '@tanstack/react-query/src/types';
|
|
18
17
|
import './request-B0CyrGFT.js';
|
|
19
18
|
import 'viem/types/misc';
|
|
20
19
|
import 'react/jsx-runtime';
|
|
21
20
|
import 'viem/_types/actions/siwe/verifySiweMessage';
|
|
21
|
+
import 'viem/_types/utils/ccip';
|
|
22
|
+
import 'viem/chains';
|
|
22
23
|
import '@tanstack/react-query';
|
|
23
|
-
import './index-
|
|
24
|
+
import './index-B80rDuha.js';
|
|
24
25
|
import 'lottie-react';
|
|
25
26
|
|
|
26
27
|
declare const wagmiConfig: wagmi.Config<[{
|
|
@@ -187,7 +188,7 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
187
188
|
stateRoot: viem.Hash;
|
|
188
189
|
timestamp: bigint;
|
|
189
190
|
totalDifficulty: bigint | null;
|
|
190
|
-
transactions: `0x${string}`[] |
|
|
191
|
+
transactions: `0x${string}`[] | wagmi_chains.OpStackTransaction<boolean>[];
|
|
191
192
|
transactionsRoot: viem.Hash;
|
|
192
193
|
uncles: viem.Hash[];
|
|
193
194
|
withdrawals?: viem.Withdrawal[] | undefined;
|
|
@@ -485,7 +486,7 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
485
486
|
stateRoot: viem.Hash;
|
|
486
487
|
timestamp: bigint;
|
|
487
488
|
totalDifficulty: bigint | null;
|
|
488
|
-
transactions: `0x${string}`[] |
|
|
489
|
+
transactions: `0x${string}`[] | wagmi_chains.OpStackTransaction<boolean>[];
|
|
489
490
|
transactionsRoot: viem.Hash;
|
|
490
491
|
uncles: viem.Hash[];
|
|
491
492
|
withdrawals?: viem.Withdrawal[] | undefined;
|
|
@@ -686,8 +687,8 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
686
687
|
readonly http: readonly ["https://rpc.matchain.io"];
|
|
687
688
|
};
|
|
688
689
|
};
|
|
689
|
-
sourceId?: number | undefined;
|
|
690
|
-
testnet?: boolean | undefined;
|
|
690
|
+
sourceId?: number | undefined | undefined;
|
|
691
|
+
testnet?: boolean | undefined | undefined;
|
|
691
692
|
custom?: Record<string, unknown> | undefined;
|
|
692
693
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
693
694
|
formatters?: undefined;
|
|
@@ -726,8 +727,8 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
726
727
|
readonly http: readonly ["https://testnet-rpc.matchain.io"];
|
|
727
728
|
};
|
|
728
729
|
};
|
|
729
|
-
sourceId?: number | undefined;
|
|
730
|
-
testnet?: boolean | undefined;
|
|
730
|
+
sourceId?: number | undefined | undefined;
|
|
731
|
+
testnet?: boolean | undefined | undefined;
|
|
731
732
|
custom?: Record<string, unknown> | undefined;
|
|
732
733
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
733
734
|
formatters?: undefined;
|
package/dist/index.js
CHANGED
|
@@ -3699,7 +3699,7 @@ var import_wagmi = require("wagmi");
|
|
|
3699
3699
|
var import_ethers = require("ethers");
|
|
3700
3700
|
|
|
3701
3701
|
// node_modules/@wagmi/core/dist/esm/version.js
|
|
3702
|
-
var version = "2.16.
|
|
3702
|
+
var version = "2.16.5";
|
|
3703
3703
|
|
|
3704
3704
|
// node_modules/@wagmi/core/dist/esm/utils/getVersion.js
|
|
3705
3705
|
var getVersion2 = () => `@wagmi/core@${version}`;
|
|
@@ -3850,7 +3850,11 @@ async function getConnectorClient(config, parameters = {}) {
|
|
|
3850
3850
|
if (config.state.status === "reconnecting" && !connector2.getAccounts && !connector2.getChainId)
|
|
3851
3851
|
throw new ConnectorUnavailableReconnectingError({ connector: connector2 });
|
|
3852
3852
|
const [accounts, chainId2] = await Promise.all([
|
|
3853
|
-
connector2.getAccounts()
|
|
3853
|
+
connector2.getAccounts().catch((e) => {
|
|
3854
|
+
if (parameters.account === null)
|
|
3855
|
+
return [];
|
|
3856
|
+
throw e;
|
|
3857
|
+
}),
|
|
3854
3858
|
connector2.getChainId()
|
|
3855
3859
|
]);
|
|
3856
3860
|
connection = {
|
|
@@ -3873,7 +3877,8 @@ async function getConnectorClient(config, parameters = {}) {
|
|
|
3873
3877
|
if (connector.getClient)
|
|
3874
3878
|
return connector.getClient({ chainId });
|
|
3875
3879
|
const account = (0, import_utils6.parseAccount)(parameters.account ?? connection.accounts[0]);
|
|
3876
|
-
|
|
3880
|
+
if (account)
|
|
3881
|
+
account.address = (0, import_utils6.getAddress)(account.address);
|
|
3877
3882
|
if (parameters.account && !connection.accounts.some((x) => x.toLowerCase() === account.address.toLowerCase()))
|
|
3878
3883
|
throw new ConnectorAccountNotFoundError({
|
|
3879
3884
|
address: account.address,
|