-
Notifications
You must be signed in to change notification settings - Fork 158
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
useSendCall
and useSendCalls
useSendCall
and useSendCalls
.changeset/dry-actors-bathe.md
Outdated
"@coinbase/onchainkit": patch | ||
--- | ||
|
||
**feat**: `useSendCall` and `useSendCalls` by @0xAlec #1130 |
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.
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.
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.
done in new diff!
src/transaction/hooks/useSendCall.ts
Outdated
setLifeCycleStatus, | ||
transactionHashList, | ||
}: UseSendCallParams) { | ||
const { status, sendTransactionAsync, data } = useSendCallWagmi({ |
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.
what are your thoughts on renaming this to be sendCallAsync
instead of sendTransactionAsync
for readability sake
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.
oh yeah, great point
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.
good call! added the alias
useSendCall
and useSendCalls
useSendCall
and useSendCalls
hooks to support call-type transactions in Transaction
component
What changed? Why?
useSendCall
anduseSendCalls
in the same format asuseWriteContract
anduseWriteContracts
to support calldata in theTransaction
componentNotes to reviewers
How has it been tested?
N/A