Getting gas estimation for payable function with no arguments #3103
Unanswered
webby-the-dev
asked this question in
Q&A
Replies: 1 comment
-
Can you console log |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi,
I would like to use
estimateGas
function for method that has no arguments but is payable so I need to send value there.I tried:
but I get error
contract.estimateGas.mint is not a function
when I do same thing for method that has arguments:
it works totally fine. What is the problem with first code?
Beta Was this translation helpful? Give feedback.
All reactions