Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Oct 22, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on enhancing the smartWallet integration by automatically resolving the entrypoint address from the factory when it's available, simplifying the wallet setup process.

Detailed summary

  • Replaced the entrypointAddress override with factoryAddress in smart-wallet-integration-v07.test.ts.
  • Updated documentation to reflect the removal of the entrypointAddress option.
  • Added logic to automatically resolve the entrypoint address from the factory in connectSmartWallet.
  • Introduced a new function getEntrypointFromFactory to fetch the entrypoint address from the specified factory contract.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 10:12pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 10:12pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 10:12pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 10:12pm

@changeset-bot
Copy link

changeset-bot bot commented Oct 22, 2024

🦋 Changeset detected

Latest commit: 364d97e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 22, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@joaquim-verges joaquim-verges marked this pull request as ready for review October 22, 2024 09:44
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @joaquim-verges and the rest of your teammates on Graphite Graphite

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.81 KB (0%) 857 ms (0%) 354 ms (-17.79% 🔽) 1.3 s
thirdweb (cjs) 102.66 KB (0%) 2.1 s (0%) 767 ms (-14.85% 🔽) 2.9 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 32 ms (+31.88% 🔺) 129 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 9 ms (-41.5% 🔽) 19 ms
thirdweb/react (minimal + tree-shaking) 17.36 KB (0%) 348 ms (0%) 156 ms (+78.02% 🔺) 503 ms

@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Oct 22, 2024
@codecov
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 88.57143% with 4 lines in your changes missing coverage. Please review.

Project coverage is 45.30%. Comparing base (795e9c1) to head (364d97e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/thirdweb/src/wallets/smart/index.ts 88.57% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5123      +/-   ##
==========================================
+ Coverage   45.28%   45.30%   +0.02%     
==========================================
  Files        1060     1060              
  Lines       54841    54874      +33     
  Branches     3957     3957              
==========================================
+ Hits        24835    24862      +27     
- Misses      29315    29320       +5     
- Partials      691      692       +1     
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 795e9c1
packages 40.26% <88.57%> (+0.03%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...ackages/thirdweb/src/wallets/smart/smart-wallet.ts 75.78% <ø> (ø)
packages/thirdweb/src/wallets/smart/index.ts 65.03% <88.57%> (+1.57%) ⬆️

... and 2 files with indirect coverage changes

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the `smartWallet` integration to automatically resolve the entrypoint address from the account factory when available, enhancing usability and simplifying the configuration for users.

### Detailed summary
- Replaced `ENTRYPOINT_ADDRESS_v0_7` with `DEFAULT_ACCOUNT_FACTORY_V0_7` in the `smartWallet` configuration.
- Updated documentation to reflect changes in how to use the `smartWallet` with the factory.
- Added logic to resolve the entrypoint address from the factory if not provided.
- Introduced a new function `getEntrypointFromFactory` to fetch the entrypoint address from the account factory contract.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 22, 2024

Merge activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-queue Adds the pull request to Graphite's merge queue. packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants