-
|
Hi, I get an error: TypeError: ethers.isAddressable is not a function. when running "yarn hardhat run scripts/aaveBorrow.js Can't find anything online about how to solve this issue. Would appreciate any help offered. Thank you! Repo: |
Beta Was this translation helpful? Give feedback.
Answered by
Niferu
Oct 18, 2023
Replies: 1 comment 4 replies
-
|
Hello @sthurley You have just wrong syntax, use below: const {getWeth} = require("../scripts/getWeth")
async function main() {
await getWeth()
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error)
process.exit(1)
}) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hi @sthurley
Try fixing your packages versions then:
yarn.lockandnode_modulespackage.jsonand copy/paste belowpackage.jsonyarnto install packages matching course ethers v5{ "name": "hardhat-defi-fcc", "devDependencies": { "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13", "@nomiclabs/hardhat-etherscan": "^3.0.0", "@nomiclabs/hardhat-waffle": "^2.0.2", "chai": "^4.3.4", "ethereum-waffle": "^3.4.0", "ethers": "^5.5.3", "hardhat": "^2.8.3", "hardhat-deploy": "^0.9.29", "hardhat-gas-reporter": "^1.0.7", "solidity-coverage": "^0.7.18" }, "dependencies": { "@aave/protocol-v2": "^1.0.1"…