sending ether value on contract write to payable function #1052
Unanswered
pmespresso
asked this question in
Ideas
Replies: 1 comment 1 reply
-
nevermind I found it in the overrides and I'm terribly embarrased 39 lashings tonight ggwp |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, I've been really enjoying using the wagmi hooks but there is one feature request I'd like to add (even implement with some guidance).
The wagmi way to call a writeable function is with
usePrepareContractWrite
and thenuseContractWrite
, something like:but the options don't include a
value
key to send Ether along for when calling apayable
function.e.g.
I'm wondering why, as from a DevEx perspective that's reasonable to expect.
If there is another way to do this, then the docs (or maybe the search) need to be updated because I haven't found anything other than
usePrepareSendTransaction
which is not what I need.Again, happy to help implement if everyone is too busy. Thank you for reading my issue.
Beta Was this translation helpful? Give feedback.
All reactions