PatrickAlphaC/hardhat-defi-fcc

aaveBorrow failing with Goerli network (working perfectly fine locally)

Closed this issue · 2 comments

await lendingPool.deposit(wethTokenAddress, AMOUNT, deployer, 0)

Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"name":"ProviderError","code":3...
reason: 'cannot estimate gas; transaction may fail or may require manual gas limit',
code: 'UNPREDICTABLE_GAS_LIMIT',
error: ProviderError: execution reverted: 2

  • Verified addresses (weth, lending protocols, feeds ... )
  • Increased gas limit with hardhat setup: allowUnlimitedContractSize, blockGasLimit...

Nothing helped, still failing. Any help would be appreciated. Thank you.