Lesson 7. Difference between .address and .getAddress() #5987
Replies: 3 comments 1 reply
-
Hey @NickoMenty, due to versions of Hey @Astronaut828, check your deploy scripts, I think you have some issue with them. |
Beta Was this translation helpful? Give feedback.
-
@alfaqi so far all my tests are failing, the second test didn't revert either, my deploy scripts match the ones in the repo |
Beta Was this translation helpful? Give feedback.
-
You should try |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes contract.address reteruns undentified. Here is an example
If i run this code, I receive the following error:
AssertionError: expected '0x5FbDB2315678afecb367f032d93F642f641…' to equal undefined
However, if I change to "await mockV3Aggregator.getAddress()", then it works.
My question is why does the first example works fine for Patric, but not for me. And what is the difference between .address and .getAddress(). I have the same hardhat version as he had. Also in other scripts I use .address, and it works perfecly fine.
if you do know, I would be glad if you help me!
Beta Was this translation helpful? Give feedback.
All reactions