-
Hello pls my contract is not deploying successfully, I was getting this error message And I'm also getting warning messages from the VRF Mock I imported.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Check your mock deployment file for "from.toLowerCase". That seems like a mistake. You should check and fix that line. |
Beta Was this translation helpful? Give feedback.
-
in your verify.js file make sure you have typed this line correctly.... line 14 verify.js //if (e.message.toLowerCase().includes("already verified")) it looks like you have not defined toLowerCase correclty by forgetting the (), so your contracts deploy up until the verify stage then it throws an error, to test this comment out the verify contract functions so they do not run and retry deployment, this should work as the only place toLowerCase() is used is in the verify.js file.....also make sure you have the correct dependencies at the top of all of your .sol files :) :) :) i hope this helps |
Beta Was this translation helpful? Give feedback.
-
The main cause for the from.toLowerCase was caused by not putting the deployer in a curly braces. Thanks you so much for helping me out. @Utilitycoder @02b2 |
Beta Was this translation helpful? Give feedback.
The main cause for the from.toLowerCase was caused by not putting the deployer in a curly braces.
Like this:
const { deployer } = await getNamedAccounts()
Thanks you so much for helping me out. @Utilitycoder @02b2