Lesson 13 : call_Exception error #5710
-
when i run "yarn hardhat run scripts/aaveBorrow.js --network localhost" i encountered an Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="getLendingPool()", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0) link to my repository> https://github.com/zeeshan615/hardhat-defi-fcc plz help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hi @zeeshan615 Are you running your local node before executing this script on local network? As it seems your contract doesnt exist on given chain. |
Beta Was this translation helpful? Give feedback.
-
I think the issue with
delete it and try again
|
Beta Was this translation helpful? Give feedback.
in
getWeth
function,you have to use address of WETH
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
instead of this
0xdd13E55209Fd76AfE204dBda4007C227904f0a81
which is defined in
helper-hardhat-config.js
aswethToken