Lesson 9: ReferenceError: args is not defined (Staging Test) #5398
-
OverviewI am trying to run the staging test by using Nothing to compile
reusing "Lottery" at 0x0199455824a45064a9e64abEAEa3a407C1605C59
Verifying Contract........
An unexpected error occurred:
Error: ERROR processing /home/mightguy/hh-1/hardhat-smartcontract-lottery/deploy/01-deploy-lottery.js:
ReferenceError: args is not defined
at Object.module.exports [as func] (/home/mightguy/hh-1/hardhat-smartcontract-lottery/deploy/01-deploy-lottery.js:64:35) My Repo: https://github.com/Jatinkkalra/hardhat-smartcontract-lottery If anyone can please help, it would be highly appreciated, Thanks a lot in advance ser! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Jatinkkalra Here You have to give the same arguments which you passed the deploy functions, and I think you forgot to store the list in the args variable to access it at both locations. |
Beta Was this translation helpful? Give feedback.
@Jatinkkalra Here
await verify(lottery.address, args);
in the01-deploy-lottery.js
file you have mentioned theargs
variable but it is not defined anywhere.You have to give the same arguments which you passed the deploy functions, and I think you forgot to store the list in the args variable to access it at both locations.