Skip to content

Commit

Permalink
[Portal] update docs on pre-generation and account abstraction (#5912)
Browse files Browse the repository at this point in the history
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 -->
  • Loading branch information
ElasticBottle committed Jan 13, 2025
1 parent a693958 commit c339803
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ A successful API call returns a JSON object in the following format:
}
```

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


## What's Next

Expand Down
1 change: 1 addition & 0 deletions apps/portal/src/components/Document/AuthList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const authOptions: InAppWalletAuth[] = [
"line",
"coinbase",
"steam",
"backend",
];

export function AuthList() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
* />;
* ```
*
* 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.
*
* ### Enabling sign in with ethereum (Auth)
*
* ```tsx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ import { useSetupScreen } from "./screen.js";
* }}
* />;
* ```
* 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.
*
* ### Enabling sign in with ethereum (Auth)
*
Expand Down

0 comments on commit c339803

Please sign in to comment.