Lesson:-5 cannot estimate gas; transaction may fail or may require manual gas limit #3308
-
My deploy,js code
and error look like this <ref *1> Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{"id":52,"jsonrpc":"2.0","error":{"message":"ENOENT: no such file or directory, open 'C:\\Users\\patid\\AppData\\Roaming\\Ganache\\workspaces\\Quickstart\\chaindata\\_tmp\\tmp-1938020mSSxmP5N0s'","code":"ENOENT","data":{"stack":"Error: ENOENT: no such file or directory, open 'C:\\Users\\patid\\AppData\\Roaming\\Ganache\\workspaces\\Quickstart\\chaindata\\_tmp\\tmp-1938020mSSxmP5N0s'","name":"Error"}}}","error":{"code":"ENOENT","data":{"stack":"Error: ENOENT: no such file or directory, open 'C:\Users\patid\AppData\Roaming\Ganache\workspaces\Quickstart\chaindata\_tmp\tmp-1938020mSSxmP5N0s'","name":"Error"}},"requestBody":"{"method":"eth_estimateGas","params":[{"gasPrice":"0x4a817c800","from":"0xe90f376138a02a58199ff6b8b5bbe31143bc8f20","data":" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
This seems like an issue with the RPC_URL. Please reply w/ the .env file. |
Beta Was this translation helpful? Give feedback.
-
Try restarting ganache (exit the application) and ensure the RPC_URL is the exact same |
Beta Was this translation helpful? Give feedback.
Try restarting ganache (exit the application) and ensure the RPC_URL is the exact same
Also make sure that the private key is from one of the accounts shown in ganache.