Lesson 7: Error: invalid address or ENS name (argument="name", value=undefined, code=INVALID_ARGUMENT, version=contracts/5.7.0) #5459
-
|
I'm having trouble testing my fund function. I have tried all the suggested solutions in this discussion (#2745) but none of them seems to work for me. Any suggestion will be appreciated. Test script: Contract: Error: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
@vaibhavtevatia In the test, you are defined the deployer again; - const deployer = (await getNamedAccounts()).deployer
+ deployer = (await getNamedAccounts()).deployer |
Beta Was this translation helpful? Give feedback.
-
|
@alymurtazamemon Thank you, I just missed it somehow. |
Beta Was this translation helpful? Give feedback.
-
|
This Discussion Helped me too , thankyou @vaibhavtevatia and @alymurtazamemon for your anwer :) |
Beta Was this translation helpful? Give feedback.
@vaibhavtevatia In the test, you are defined the deployer again;