-
I'm trying to call the approve function in an erc20 contract. the solidity function has two args, spender and amount:
I'm trying to call it like this, following the discussion about this:
but i keep getting errors with my arguments:
It seems that my args is only passing into "value", and nothing is being passed into "argument". Not sure how to fix this. What is the correct way to pass the spender and amount args into the write function? |
Beta Was this translation helpful? Give feedback.
Answered by
bguan2020
Mar 4, 2022
Replies: 1 comment
-
nvm i got it
pass the arguments into args as an actual array, not an array of objects |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bguan2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nvm i got it
pass the arguments into args as an actual array, not an array of objects