Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Jan 13, 2025

PR-Codex overview

This PR introduces the isValidENSName utility function to validate ENS names across the codebase. It replaces instances of isEnsName with isValidENSName to ensure consistent validation and enhances various components and utilities to support this change.

Detailed summary

  • Added isValidENSName function for ENS name validation.
  • Replaced isEnsName with isValidENSName in multiple files.
  • Updated validation logic in components like validateAddress, resolveAddressAndEns, and others.
  • Enhanced error handling for invalid ENS names.
  • Modified schemas to use isValidENSName for ENS name checks.
  • Added tests for isValidENSName to ensure correct functionality.

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

@linear
Copy link

linear bot commented Jan 13, 2025

@vercel
Copy link

vercel bot commented Jan 13, 2025

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 Jan 13, 2025 6:29pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 6:29pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 6:29pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 6:29pm

@github-actions github-actions bot added Dashboard Involves changes to the Dashboard. packages SDK Involves changes to the thirdweb SDK labels Jan 13, 2025
@MananTank MananTank marked this pull request as ready for review January 13, 2025 14:53
@MananTank MananTank requested review from a team as code owners January 13, 2025 14:53
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@changeset-bot
Copy link

changeset-bot bot commented Jan 13, 2025

🦋 Changeset detected

Latest commit: 0e2b3df

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

This PR includes changesets to release 2 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter 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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.65 KB (0%) 913 ms (0%) 2.6 s (+21.46% 🔺) 3.5 s
thirdweb (cjs) 115.43 KB (0%) 2.4 s (0%) 5.3 s (-7.29% 🔽) 7.6 s
thirdweb (minimal + tree-shaking) 5.59 KB (0%) 112 ms (0%) 449 ms (+140.12% 🔺) 561 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 111 ms (+8.15% 🔺) 121 ms
thirdweb/react (minimal + tree-shaking) 19.21 KB (0%) 385 ms (0%) 764 ms (+2.11% 🔺) 1.2 s

@codecov
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.

Project coverage is 54.85%. Comparing base (c339803) to head (0e2b3df).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rdweb/src/react/core/hooks/wallets/useSendToken.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5937      +/-   ##
==========================================
+ Coverage   54.83%   54.85%   +0.02%     
==========================================
  Files        1141     1142       +1     
  Lines       60903    60928      +25     
  Branches     5128     5140      +12     
==========================================
+ Hits        33394    33424      +30     
+ Misses      26782    26777       -5     
  Partials      727      727              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from c339803
packages 52.50% <96.15%> (+0.03%) ⬆️

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

Files with missing lines Coverage Δ
packages/thirdweb/src/utils/ens/isValidENSName.ts 100.00% <100.00%> (ø)
...rdweb/src/react/core/hooks/wallets/useSendToken.ts 10.93% <0.00%> (ø)

... and 2 files with indirect coverage changes

@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 13, 2025

Merge activity

…just .eth (#5937)

<!-- start pr-codex -->

## PR-Codex overview
This PR introduces the `isValidENSName` utility function to validate ENS names, replacing the previous `isEnsName` checks across multiple files. It refines address validation and enhances the overall handling of ENS names within the codebase.

### Detailed summary
- Added `isValidENSName` utility function for ENS name validation.
- Replaced occurrences of `isEnsName` with `isValidENSName` in various files.
- Updated validation logic in components and utilities to improve address and ENS name handling.
- Enhanced error messages and conditions related to ENS name checks.

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

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. packages Playground Changes involving the Playground codebase. SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants