-
I'm getting some errors related to provider.estimateGas. It works with a value of 0 wei but anything else gives some sort of error.
Works fine, console logs
However,
gives the error
and console logs only |
Beta Was this translation helpful? Give feedback.
Answered by
ricmoo
Oct 27, 2022
Replies: 1 comment
-
That probably means the contract method is not |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dimmil123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That probably means the contract method is not
payable
. If you send ether to a non-payable method, it will revert (a non-=payable function effectively has an implicitrequire(msg.value == 0);
at the top of the method.