Skip to content

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

@mutantcornholio

Description

@mutantcornholio

This test fails with the following error:

Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted: ", method="estimateGas",

Here's another one:
https://github.com/paritytech/scc-testing/blob/7f2410d5a21cbcb2bbc2b6dad23cd5172ae665c2/axelar-gmp-sdk-solidity/test/utils/TimeLock.js#L179-L207

     Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted", method="estimateGas", transaction={"from":"0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac","to":"0x27A3bcc2D1B9Ba2aaB3eF0Cec2c49a2d26101D8c","data":"0xcd16ecbf0000000000000000000000000000000000000000000000000000000000000005","accessList":null}, error={"name":"ProviderError","_stack":"ProviderError: execution reverted\n    at HttpProvider.request (/Users/cornholio/work/parity/scc-testing/axelar-gmp-sdk-solidity/node_modules/hardhat/src/internal/core/providers/http.ts:116:21)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at EthersProviderWrapper.send (/Users/cornholio/work/parity/scc-testing/axelar-gmp-sdk-solidity/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)","code":3,"_isProviderError":true,"data":"0x4019a5d3"}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.7.2)
      at Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at checkError (node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:78:20)
      at EthersProviderWrapper.<anonymous> (node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:642:20)
      at step (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
      at Object.throw (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
      at rejected (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)

In total, there are five cases like this in axelar-gmp-sdk-solidity

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions