Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented May 7, 2025


PR-Codex overview

This PR focuses on handling hex value formats for smart wallet execution and includes adjustments for value calculations specific to hedera chains.

Detailed summary

  • Updated getNFT1155 to set useIndexer to false.
  • Changed value calculation for hedera chains from value / BigInt(10 ** 10) to BigInt(value) / BigInt(10 ** 10) in packages/thirdweb/src/wallets/smart/lib/calls.ts.
  • Updated batch value calculations similarly in prepareBatchExecute.

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

@vercel
Copy link

vercel bot commented May 7, 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 May 7, 2025 10:57pm
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2025 10:57pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2025 10:57pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2025 10:57pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2025 10:57pm

@changeset-bot
Copy link

changeset-bot bot commented May 7, 2025

🦋 Changeset detected

Latest commit: c878303

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 github-actions bot added packages SDK Involves changes to the thirdweb SDK labels May 7, 2025
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.

@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 53.77 KB (0%) 1.1 s (0%) 239 ms (+135.79% 🔺) 1.4 s
thirdweb (cjs) 144.26 KB (+0.04% 🔺) 2.9 s (+0.04% 🔺) 407 ms (+62.69% 🔺) 3.3 s
thirdweb (minimal + tree-shaking) 5.68 KB (0%) 114 ms (0%) 126 ms (+1820.37% 🔺) 239 ms
thirdweb/chains (tree-shaking) 524 B (0%) 11 ms (0%) 60 ms (+1850.99% 🔺) 70 ms
thirdweb/react (minimal + tree-shaking) 19.48 KB (0%) 390 ms (0%) 111 ms (+530.98% 🔺) 501 ms

@codecov
Copy link

codecov bot commented May 7, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 54.80%. Comparing base (ec50f8c) to head (c878303).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
packages/thirdweb/src/wallets/smart/lib/calls.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6974      +/-   ##
==========================================
- Coverage   55.02%   54.80%   -0.23%     
==========================================
  Files         898      901       +3     
  Lines       57352    57610     +258     
  Branches     3969     3958      -11     
==========================================
+ Hits        31560    31575      +15     
- Misses      25692    25935     +243     
  Partials      100      100              
Flag Coverage Δ
packages 54.80% <33.33%> (-0.23%) ⬇️
Files with missing lines Coverage Δ
...es/thirdweb/src/react/web/ui/prebuilt/NFT/utils.ts 100.00% <100.00%> (ø)
packages/thirdweb/src/wallets/smart/lib/calls.ts 75.71% <0.00%> (ø)

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@joaquim-verges joaquim-verges merged commit 5f6403b into main May 7, 2025
21 of 24 checks passed
@joaquim-verges joaquim-verges deleted the _SDK_Fix_hex_value_handling_for_smart_wallet_execution branch May 7, 2025 22:56
@joaquim-verges joaquim-verges mentioned this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants