Skip to content

Lesson 13 - No contract deployed with name IERC20 #1181

Answered by alymurtazamemon
DaurenNox asked this question in Q&A
Discussion options

You must be logged in to vote

@DaurenNope

- const erc20Token = await ethers.getContract("IERC20", erc20Address, account)
+ const erc20Token = await ethers.getContractAt("IERC20", erc20Address, account)

getContract method updated to getContractAt

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DaurenNox
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants