smartcontractkit / full-blockchain-solidity-course-js

Learn Blockchain, Solidity, and Full Stack Web3 Development with Javascript
12.25k stars 2.94k forks source link

Found an error with DeFi deployment on Goerli network #4872

Open etienneadaher opened 1 year ago

etienneadaher commented 1 year ago

Lesson

Lesson 13

Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")

No response

Operating System

macOS (Intel)

Describe the bug

yarn hardhat run scripts/aaveBorrow.js --network goerli

On this function I am running into an error:

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

Coming from:

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

Also I've:

No luck yet!