@@ -8,14 +8,14 @@ import { createSnapComponent } from '../../component';
8
8
* @property name - The name of the account selector. This is used to identify the
9
9
* state in the form data.
10
10
* @property title - The title of the account selector. This is displayed in the UI.
11
- * @property chainId - The chain ID of the account selector. This should be a valid CAIP-2 chain ID.
11
+ * @property chainIds - The chain IDs of the account selector. This should be a valid CAIP-2 chain ID array .
12
12
* @property selectedAddress - The default selected address of the account selector. This should be a
13
13
* valid CAIP-10 account address.
14
14
*/
15
15
export type AccountSelectorProps = {
16
16
name : string ;
17
17
title : string ;
18
- chainId : CaipChainId ;
18
+ chainIds : CaipChainId [ ] ;
19
19
selectedAddress : CaipAccountAddress ;
20
20
} ;
21
21
@@ -30,14 +30,14 @@ const TYPE = 'AccountSelector';
30
30
* @param props.name - The name of the account selector field. This is used to identify the
31
31
* state in the form data.
32
32
* @param props.title - The title of the account selector field. This is displayed in the UI.
33
- * @param props.chainId - The chain ID of the account selector. This should be a valid CAIP-2 chain ID.
33
+ * @param props.chainIds - The chain IDs of the account selector. This should be a valid CAIP-2 chain ID array .
34
34
* @param props.selectedAddress - The selected address of the account selector. This should be a
35
35
* valid CAIP-10 account address.
36
36
* @returns An account selector element.
37
37
* @example
38
- * <AccountSelector name="account" title="From account" chainId= "eip155:1" selectedAddress="0x1234567890123456789012345678901234567890" />
38
+ * <AccountSelector name="account" title="From account" chainIds={[ "eip155:1"]} selectedAddress="0x1234567890123456789012345678901234567890" />
39
39
* @example
40
- * <AccountSelector name="account" title="From account" chainId= "bip122:000000000019d6689c085ae165831e93" selectedAddress="128Lkh3S7CkDTBZ8W7BbpsN3YYizJMp8p6" />
40
+ * <AccountSelector name="account" title="From account" chainIds={[ "bip122:000000000019d6689c085ae165831e93"]} selectedAddress="128Lkh3S7CkDTBZ8W7BbpsN3YYizJMp8p6" />
41
41
*/
42
42
export const AccountSelector = createSnapComponent <
43
43
AccountSelectorProps ,
0 commit comments