-
Notifications
You must be signed in to change notification settings - Fork 559
[SDK] fix: Requery allowances on quote screen return #6187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDK] fix: Requery allowances on quote screen return #6187
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: edaaef5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
size-limit report 📦
|
packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx
Outdated
Show resolved
Hide resolved
props.quote.approvalData && | ||
props.preApprovedAmount !== undefined && | ||
props.preApprovedAmount < BigInt(props.quote.approvalData.amountWei); | ||
console.log("needsApproval", needsApproval); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this console.log
statement as it appears to be debugging code that shouldn't be committed to production.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
4b5784d
to
80bf9b8
Compare
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (9.44%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #6187 +/- ##
=======================================
Coverage ? 56.87%
=======================================
Files ? 1155
Lines ? 63988
Branches ? 5200
=======================================
Hits ? 36395
Misses ? 26865
Partials ? 728
*This pull request uses carry forward flags. Click here to find out more.
|
80bf9b8
to
edaaef5
Compare
PR-Codex overview
This PR focuses on enhancing the handling of approval amounts in the
thirdweb
package, specifically in theBuy
flow. It introduces changes to manage approval data more effectively, ensuring that allowance checks are performed correctly before transactions.Detailed summary
approvalAmount
property in various components.approval
withapprovalData
inBuyWithCryptoTransfer
andBuyWithCryptoQuote
types.PostOnRampSwap
,TransferConfirmationScreen
, andSwapConfirmationScreen
.approvalData
.