Skip to content

Commit c339803

Browse files
committed
[Portal] update docs on pre-generation and account abstraction (#5912)
https://linear.app/thirdweb/issue/TOOL-2988/update-docs-to-call-out-pregeneration-caveats <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing documentation and functionality related to wallet connections and smart accounts in the `thirdweb` library, particularly emphasizing account abstraction and the use of smart wallets. ### Detailed summary - Added `backend` to the `AuthList` component in `AuthList.tsx`. - Updated documentation in `ConnectEmbed.tsx` and `ConnectButton.tsx` regarding ecosystem wallets and account abstraction. - Introduced a warning callout in `page.mdx` for generating smart wallet addresses using `predictSmartAccountAddress`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent a693958 commit c339803

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

apps/portal/src/app/connect/wallet/pregenerate-wallets/page.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ A successful API call returns a JSON object in the following format:
115115
}
116116
```
117117

118+
<Callout variant='warning' title='Smart Wallet Address'>
119+
Use [`predictSmartAccountAddress`](/references/typescript/v5/predictSmartAccountAddress) to generate the corresponding smart wallet address.
120+
The `address` field always corresponds to the EOA address that has been pregenerated.
121+
</Callout>
122+
118123

119124
## What's Next
120125

apps/portal/src/components/Document/AuthList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const authOptions: InAppWalletAuth[] = [
2121
"line",
2222
"coinbase",
2323
"steam",
24+
"backend",
2425
];
2526

2627
export function AuthList() {

packages/thirdweb/src/react/web/ui/ConnectWallet/ConnectButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
111111
* />;
112112
* ```
113113
*
114+
* Note that this prop doesn't affect ecosystem wallets. Ecosystem wallets will only be converted to smart accounts if the ecosystem owner has enabled account abstraction.
115+
*
114116
* ### Enabling sign in with ethereum (Auth)
115117
*
116118
* ```tsx

packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ import { useSetupScreen } from "./screen.js";
110110
* }}
111111
* />;
112112
* ```
113+
* Note that this prop doesn't affect ecosystem wallets. Ecosystem wallets will only be converted to smart accounts if the ecosystem owner has enabled account abstraction.
113114
*
114115
* ### Enabling sign in with ethereum (Auth)
115116
*

0 commit comments

Comments
 (0)