Replies: 1 comment 2 replies
-
Ok, figured it out. Yes, seems you have to send the value to method (even is just checking the gas price) |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
const estimatedGas = await MyContract.estimateGas.sendMessage("my message")
Error: cannot estimate gas; transaction may fail or may require manual gas limit
Do I need to send a
overrides.value
with the method? (it is a payable method) even though I'm just checking the gas westimateGas
(not actually calling the method)?Also, what is meant by setting
manual gas limit
?Beta Was this translation helpful? Give feedback.
All reactions