``` <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Replaces the hardcoded `MINIMAL_ACCOUNT_IMPLEMENTATION_ADDRESS` with a dynamic fetch from the bundler using the `tw_getDelegationContract` RPC method. This change: - Introduces an async function `getDelegationContractAddress` to fetch the address. - Implements caching for the fetched address to prevent redundant RPC calls. - Updates `_sendTxWithAuthorization` and `is7702MinimalAccount` to handle the async nature and use the dynamically fetched address. - Ensures type safety for address fields. ## How to test Unit tests cover the functionality. A temporary test was created and verified during development. ``` pnpm test packages/thirdweb/src/wallets/in-app/core/eip7702/minimal-account.ts ``` --> ``` --- [Slack Thread](https://thirdwebdev.slack.com/archives/C085FEPFLN9/p1756220164604699?thread_ts=1756220164.604699&cid=C085FEPFLN9) <a href="https://cursor.com/background-agent?bcId=bc-874d9753-17ac-4429-8dfb-c3d6776f6711"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"> <img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"> </picture> </a> <a href="https://cursor.com/agents?id=bc-874d9753-17ac-4429-8dfb-c3d6776f6711"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"> <img alt="Open in Web" src="https://cursor.com/open-in-web.svg"> </picture> </a> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the `erc7702` extension, refining event filters, and modifying function signatures to enhance clarity and correctness. It also introduces delegation contract handling in the `minimal-account` implementation. ### Detailed summary - Updated function signatures and event filters in multiple files to replace `signer` with `user` and `newSigner`. - Improved data structures in the generated files for `MinimalAccount`. - Added delegation contract address fetching in `minimal-account.ts`. - Adjusted transaction handling logic to use the delegation contract address. - Enhanced error handling for RPC responses. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Minimal account updated: token-receiver callbacks, interface support check, payable receive, new executeWithSig entrypoint, and a ValueReceived event; SessionCreated/Executed events now include user/newSigner. - Bug Fixes - Delegation contract resolved dynamically via bundler with caching and improved error handling. - Address normalization for transactions and nonce lookups to reduce mismatch errors. - Removed a redundant error from the ABI. - Tests - Tests updated to assert renamed event fields (user/newSigner). <!-- end of auto-generated comment: release notes by coderabbit.ai -->
thirdweb
All-in-one web3 SDK for Browser, Node and Mobile apps
Installation
npm install thirdweb
Features
| thirdweb | Wagmi | Viem | Ethers@6 | |
|---|---|---|---|---|
| Type safe contract API | ✅ | ✅ | ✅ | ✅ |
| Type safe wallet API | ✅ | ✅ | ✅ | ✅ |
| EVM utils | ✅ | ❌ | ✅ | ✅ |
| RPC for any EVM | ✅ | ⚠️ public RPC only | ⚠️ public RPC only | ❌ |
| Automatic ABI Resolution | ✅ | ❌ | ❌ | ❌ |
| IPFS Upload/Download | ✅ | ❌ | ❌ | ❌ |
| Embedded wallet (email/ social login) | ✅ | ⚠️ via 3rd party | ❌ | ❌ |
| Account abstraction (ERC4337) support | ✅ | ⚠️ via 3rd party | ⚠️ via 3rd party | ❌ |
| Web3 wallet connectors | ✅ | ✅ | ❌ | ❌ |
| Local wallet creation | ✅ | ❌ | ✅ | ✅ |
| Auth (SIWE) | ✅ | ⚠️ via 3rd party | ❌ | ❌ |
| Extensions functions for common standards | ✅ | ❌ | ❌ | ❌ |
| React Hooks | ✅ | ✅ | ❌ | ❌ |
| React UI components | ✅ | ❌ | ❌ | ❌ |
| React Native Hooks | ✅ | ❌ | ❌ | ❌ |
| React Native UI Components | ✅ | ❌ | ❌ | ❌ |
Documentation
Visit the thirdweb developer portal to view the full documentation.
Migrating from previous versions
Follow the migration guide to learn how to progrssively upgrade to the unified thirdweb SDK from previous versions.
Starter kits
Contributing
We welcome contributions from all developers, regardless of experience level. If you are interested in contributing, please read our Contributing Guide where you'll learn how the repo works, how to test your changes, and how to submit a pull request.