Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Nov 18, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on renaming the variable used to set the active wallet in the useSetActiveWallet hook for clarity and consistency.

Detailed summary

  • Changed the variable name from setActiveAccount to setActiveWallet for better clarity.
  • Updated the usage of the variable in the code from await setActiveAccount(account); to await setActiveWallet(wallet);.

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

@vercel
Copy link

vercel bot commented Nov 18, 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 Nov 18, 2024 7:39pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2024 7:39pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2024 7:39pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2024 7:39pm

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2024

⚠️ No Changeset found

Latest commit: ed58c4c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 18, 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.

@MananTank MananTank marked this pull request as ready for review November 18, 2024 13:10
Copy link
Member Author

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.13 KB (0%) 903 ms (0%) 4.5 s (+63.28% 🔺) 5.4 s
thirdweb (cjs) 105.15 KB (0%) 2.2 s (0%) 8.3 s (+2.64% 🔺) 10.4 s
thirdweb (minimal + tree-shaking) 5.72 KB (0%) 115 ms (0%) 282 ms (-51.68% 🔽) 396 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 58 ms (+6.76% 🔺) 68 ms
thirdweb/react (minimal + tree-shaking) 18.79 KB (0%) 376 ms (0%) 431 ms (-50.3% 🔽) 807 ms

@codecov
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.52%. Comparing base (8e22cf8) to head (ed58c4c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5444   +/-   ##
=======================================
  Coverage   45.52%   45.52%           
=======================================
  Files        1070     1070           
  Lines       55707    55707           
  Branches     4031     4032    +1     
=======================================
  Hits        25361    25361           
  Misses      29659    29659           
  Partials      687      687           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 8e22cf8
packages 40.63% <ø> (ø)

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

Files with missing lines Coverage Δ
...src/react/core/hooks/wallets/useSetActiveWallet.ts 40.00% <ø> (ø)
---- 🚨 Try these New Features:

@MananTank MananTank changed the title Fix useSetActiveWallet code example in JSDoc [SDK] Fix useSetActiveWallet code example in JSDoc Nov 18, 2024
@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 18, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 18, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on renaming a variable for clarity in the `useSetActiveWallet` hook implementation within the `useSetActiveWallet.ts` file.

### Detailed summary
- Renamed the variable `setActiveAccount` to `setActiveWallet` for consistency with the hook name.
- Updated the usage of the variable to `await setActiveWallet(wallet);` to reflect the new name.

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

<!-- end pr-codex -->
@MananTank MananTank force-pushed the 11-18-fix_usesetactivewallet_code_example_in_jsdoc branch from 3e1eb5e to ed58c4c Compare November 18, 2024 19:22
@github-actions github-actions bot added the SDK Involves changes to the thirdweb SDK label Nov 18, 2024
@graphite-app graphite-app bot merged commit ed58c4c into main Nov 18, 2024
31 of 32 checks passed
@graphite-app graphite-app bot deleted the 11-18-fix_usesetactivewallet_code_example_in_jsdoc branch November 18, 2024 19:39
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 SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants