Replies: 5 comments 14 replies
-
I think you were trying to convert currentFavoriteNumber to string but your await contract.retrieve() returned an undefined. |
Beta Was this translation helpful? Give feedback.
-
Can you paste your Encryptedfile code here? used for creating wallet. |
Beta Was this translation helpful? Give feedback.
-
Looks like let wallet = new ethers.Wallet.fromEncryptedJsonSync(
encryptJson,
process.env.PRIVATE_KEY_PASSWORD
) is where the error happens. |
Beta Was this translation helpful? Give feedback.
-
@NinjaTurtles-cloud your encrypted file when you write is |
Beta Was this translation helpful? Give feedback.
-
I get the same error. it seems that it doesn't recognize the .env variables. ie. process.env.PRIVATE_KEY_PASSWORD. When i hover over mine it says undefined even when I add a path to the dotenv.config({path: "../.env"}) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I'm on 08.03.09 from the video tutorial.
And i don't know why when i launch
node deploy.js
i gotTypeError: Cannot read property 'toHexString' of undefined
et tout le code "console.log" present dans la fonction main ne s'affiche pas dans la console
This is deploy.js code
And this is all the console output.
Beta Was this translation helpful? Give feedback.
All reactions