Skip to content

Error: cannot estimate gas; transaction may fail or may require manual gas limit #267

Description

@thakurankit321

Hi guys, I am getting this error whenever i am trying to run this script

yarn --cwd packages/bundler runop --deployFactory --network https://rpc-stage.devdomain123.com --entryPoint 0x0000000071727De22E5E9d8BAf0edAc6f37da032 --mnemonic ./localconfig/mnemonic.txt
Error :

<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":"execution reverted","code":"UNPREDICTABLE_GAS_LIMIT","method":"estimateGas","transaction":{"from":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266","maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x59682f00"},"maxFeePerGas":{"type":"BigNumber","hex":"0x59682f0e"},"to":"0x4e59b44847b379578588920cA78FbF26c0B4956C","data":"some data","type":2,"accessList":null},"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":56,\"error\":{\"code\":-32000,\"message\":\"execution reverted\"}}\n","error":{"code":-32000},"requestBody":"{\"method\":\"eth_estimateGas\",\"params\":[{\"type\":\"0x2\",\"maxFeePerGas\":\"0x59682f0e\",\"maxPriorityFeePerGas\":\"0x59682f00\",\"from\":\"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\",\"to\":\"0x4e59b44847b379578588920ca78fbf26c0b4956c\",\"data\":\"some dta\"}],\"id\":56,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://rpc-stage.devdomain123.com"}}, tx={"to":{},"data":"somedata","from":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266","type":2,"maxFeePerGas":{"type":"BigNumber","hex":"0x59682f0e"},"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x59682f00"},"nonce":{},"gasLimit":{},"chainId":{}}, code=UNPREDICTABLE_GAS_LIMIT, version=abstract-signer/5.7.0)
at Logger.makeError (/data/blockdag/Bundler/bundler/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (/data/blockdag/Bundler/bundler/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at /data/blockdag/Bundler/bundler/node_modules/@ethersproject/abstract-signer/src.ts/index.ts:301:31
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 7) {
reason: 'cannot estimate gas; transaction may fail or may require manual gas limit',
code: 'UNPREDICTABLE_GAS_LIMIT',

i have used somedata in the data filed as it was too long to put here.

Does anyone know why this is happening ? I have deployed entrypoint,simple account factory,and create2 factory on my network too .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions