How to estimate gas for new Smart Contract deployment? #1781
Unanswered
akshatmittal
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I need to add a deployment gas estimation method, but it would do exactly what you described. Can you include the transaction? It should work to use that to estimate the gas needed. |
Beta Was this translation helpful? Give feedback.
4 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.
-
How do you estimate gas for a new
ContractFactory
instance which hasn't been deployed yet? The contract factory doesn't seem to have any estimate functions, and I already tried converting it to data usinggetDeployTransaction
then passing it toprovider.estimateGas
but that results inUNPREDICTABLE_GAS_LIMIT
while Web3.js works just fine.Beta Was this translation helpful? Give feedback.
All reactions