Lesson 5 error: Error: VM Exception while processing transaction: invalid opcode during node deploy.js #6746
Unanswered
kasimselamat
asked this question in
Q&A
Replies: 1 comment
-
Seems like for some reason the version of solidity you're using is causing issues... change the solidity version in your SimpleStorage.sol to
and then go ahead and upgrade the solidity compiler in your terminal by running
and then finally you want to go ahead delete both the SimpleStorage abi and bin files, making sure to recompile with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ran into problem when trying to deploy the contract using the command node deploy.js. I think the problem lie on the ganache desktop version since I tried to run the ganache on the wsl using the command yarn run ganache and try to connect to the node using the given rpc url and it worked. I have tried to configure the setting for the desktop ganache that change the hostname to WSL but still run into the same problem. Below is the snippet of code that trying to connect to the blockchain node from the desktop ganache:
Below is the dependencies version from the package.json:
Below is the error message that I get went run the command node deploy.js (there are many error message but I just paste the last one since I think that is the root of the error):
Hope someone that know how to resolve this help me please
Beta Was this translation helpful? Give feedback.
All reactions