estimateGas for writing the contract in ethers 6 #4117
-
Hi, How do I estimaGas for a contract function in ethers >5? In ethers 5 it way contract.estimateGas.contractFunction(), but now it doesn't work this way..... Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
this for example provider.estimateGas(await contract.function()) throws an TODO error... |
Beta Was this translation helpful? Give feedback.
-
my bad the example above is the right method I guess, I had a typo in the code |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
contract.someMethod.estimateGas(arg0, arg2)