-
Notifications
You must be signed in to change notification settings - Fork 620
[CORE-654] Nebula replace sendTransaction function with useSendTransaction hook #5797
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
[CORE-654] Nebula replace sendTransaction function with useSendTransaction hook #5797
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
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 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5797 +/- ##
=======================================
Coverage 53.01% 53.01%
=======================================
Files 1101 1101
Lines 59096 59096
Branches 4813 4813
=======================================
Hits 31329 31329
Misses 27049 27049
Partials 718 718
*This pull request uses carry forward flags. Click here to find out more. |
Merge activity
|
…ction hook (#5797) ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the transaction handling in the `Chats` component by improving the transaction execution process and ensuring the use of an authenticated `ThirdwebClient`. ### Detailed summary - Updated `client` initialization in `ChatPageContent` to include `props.authToken`. - Introduced `ExecuteTransaction` component to handle transaction execution. - Replaced `SendTransactionButton` with `ExecuteTransaction` in `Chats`. - Refactored `SendTransactionButton` to use `useSendTransaction` instead of `sendTransaction`. - Simplified error handling for transaction data parsing. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
19cf8c1 to
46a426b
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on enhancing the
Chatscomponent by modifying transaction handling to useuseSendTransactionand updating theSendTransactionButtonto improve transaction execution with better error handling and client integration.Detailed summary
clientinitialization inChatPageContent.tsxto useprops.authToken.SendTransactionButtonwithExecuteTransactioninChats.tsx.ExecuteTransactionfunction to handle transaction execution.SendTransactionButtonto useuseSendTransaction.clientprop toSendTransactionButtonfor better integration.