Skip to content
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

feat: add useSendCall and useSendCalls hooks to support call-type transactions in Transaction component #1130

Merged
merged 7 commits into from
Aug 21, 2024

Conversation

0xAlec
Copy link
Contributor

@0xAlec 0xAlec commented Aug 21, 2024

What changed? Why?

  • scaffold useSendCall and useSendCalls in the same format as useWriteContract and useWriteContracts to support calldata in the Transaction component

Notes to reviewers

How has it been tested?
N/A

Copy link

vercel bot commented Aug 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
onchainkit-coverage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:34pm
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:34pm
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:34pm

@0xAlec 0xAlec changed the title useSendCall and useSendCalls feat: useSendCall and useSendCalls Aug 21, 2024
"@coinbase/onchainkit": patch
---

**feat**: `useSendCall` and `useSendCalls` by @0xAlec #1130
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make sure we are a bit more verbose in what those function do.

The goal of a CHANGELOG is to inform and help the developer understand what's going on.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in new diff!

setLifeCycleStatus,
transactionHashList,
}: UseSendCallParams) {
const { status, sendTransactionAsync, data } = useSendCallWagmi({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are your thoughts on renaming this to be sendCallAsync instead of sendTransactionAsync for readability sake

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah, great point

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call! added the alias

@Zizzamia Zizzamia merged commit 07c5af6 into main Aug 21, 2024
16 checks passed
@Zizzamia Zizzamia deleted the alec/transaction-mig branch August 21, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants