usePrepareContractWrite fails for payable contract if args has many key-value pairs #1611
Unanswered
Lactantius
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
Everything looks correct. I would double check that |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a contract function that takes several values in a struct, and I want to interact with it with
usePrepareContractWrite:This will work as written, but when I start adding more key-value pairs to
argsthen I getinvalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.7.0, andwriteisundefinedunlessvalueandtokenAmountare0. I can always use two values inargs, but the exact number I can add before failure seems to vary.This is using Next and Wagmi 0.9.6 (using older version because of ConnectKit) and Next 13.0.6.
Beta Was this translation helpful? Give feedback.
All reactions