lesson 17 Error: cannot estimate gas; transaction may fail or may require manual gas limit #5889
Unanswered
muhammet72
asked this question in
Q&A
Replies: 1 comment
-
solved it, add this to hardhat.config.js to test net
|
Beta Was this translation helpful? Give feedback.
0 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.
-
Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="Error: VM Exception while processing transaction: reverted with reason string 'Governor: unknown proposal id'", method="estimateGas", transaction={"from":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266","to":"0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9","data":"0x160cbed7000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100194039bbf626bee68474ba36b08d80714f385d00fd4c5c130b60bd7ff3ce420f0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a513e6e4b8f2a923d98304ec87f64353c4d5c853000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000246057361d000000000000000000000000000000000000000000000000000000000000004d00000000000000000000000000000000000000000000000000000000","accessList":null}, error={"name":"ProviderError","_stack":"ProviderError: Error: VM Exception while processing transaction: reverted with reason string 'Governor: unknown proposal id'\n at HttpProvider.request (/home/code/hardhat-dao/node_modules/hardhat/src/internal/core/providers/http.ts:88:21)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at EthersProviderWrapper.send (/home/code/hardhat-dao/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)","code":-32603,"_isProviderError":true,"data":{"message":"Error: VM Exception while processing transaction: reverted with reason string 'Governor: unknown proposal id'","data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001d476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c206964000000"}}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.7.2)
at Logger.makeError (/home/code/hardhat-dao/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (/home/code/hardhat-dao/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at checkError (/home/code/hardhat-dao/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:78:20)
at EthersProviderWrapper. (/home/code/hardhat-dao/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:642:20)
at step (/home/code/hardhat-dao/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
at Object.throw (/home/code/hardhat-dao/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
at rejected (/home/code/hardhat-dao/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: "Error: VM Exception while processing transaction: reverted with reason string 'Governor: unknown proposal id'",
code: 'UNPREDICTABLE_GAS_LIMIT',
method: 'estimateGas',
transaction: {
from: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
to: '0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9',
data: '0x160cbed7000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100194039bbf626bee68474ba36b08d80714f385d00fd4c5c130b60bd7ff3ce420f0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a513e6e4b8f2a923d98304ec87f64353c4d5c853000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000246057361d000000000000000000000000000000000000000000000000000000000000004d00000000000000000000000000000000000000000000000000000000',
accessList: null
},
error: ProviderError: Error: VM Exception while processing transaction: reverted with reason string 'Governor: unknown proposal id'
at HttpProvider.request (/home/code/hardhat-dao/node_modules/hardhat/src/internal/core/providers/http.ts:88:21)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at EthersProviderWrapper.send (/home/code/hardhat-dao/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
}
**How can I fix this gas problem **
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions