Skip to content

Commit a0171bc

Browse files
committed
fix: required
1 parent 7081afd commit a0171bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/tron/src/provider/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
import { AntDesignWeb3ConfigProvider } from './config-provider';
1313

1414
export interface TronWeb3ConfigProviderProps {
15-
wallets: Wallet[];
15+
wallets?: Wallet[];
1616
onError?: (error: Error) => void;
1717
autoConnect?: boolean;
1818
locale?: Locale;

packages/web3/src/tron/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You can check the wallets supported by Tron in the [tronwallet-adapter](https://
4040

4141
| Property | Description | Type | Default | Required |
4242
| --- | --- | --- | --- | --- |
43-
| wallets | Supported wallet list | WalletMetadata\[\] | - | Yes |
43+
| wallets | Supported wallet list | WalletMetadata\[\] | - | - |
4444
| autoConnect | Whether to connect automatically | `boolean` | `false` | - |
4545
| locale | Multilingual settings | [Locale](https://github.com/ant-design/ant-design-web3/blob/main/packages/common/src/locale/en_US.ts) | - | - |
4646
| onError | onError | [WalletError](https://github.com/web3-geek/tronwallet-adapter/blob/main/packages/adapters/abstract-adapter/src/errors.ts#L1) | - | - |

packages/web3/src/tron/index.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Tron 支持的钱包可以在 [tronwallet-adapter](https://github.com/web3-geek/
4141

4242
| 属性 | 描述 | 类型 | 默认值 | 是否必填 |
4343
| --- | --- | --- | --- | --- |
44-
| wallets | 可用的钱包 | WalletFactory\[\] | - | 必填 |
44+
| wallets | 可用的钱包 | WalletFactory\[\] | - | - |
4545
| autoConnect | 是否自动连接 | `boolean` | `false` | - |
4646
| locale | 多语言设置 | [Locale](https://github.com/ant-design/ant-design-web3/blob/main/packages/common/src/locale/zh_CN.ts) | - | - |
4747
| onError | 异常方法 | [WalletError](https://github.com/web3-geek/tronwallet-adapter/blob/main/packages/adapters/abstract-adapter/src/errors.ts#L1) | - | - |

0 commit comments

Comments
 (0)