Lesson 5 - Deploying contract on Ganache: Runtime Error, invalid opcode #5706
-
Beta Was this translation helpful? Give feedback.
Answered by
LouisHatte
Jun 18, 2023
Replies: 2 comments 1 reply
-
Okay, before I used solidity version |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alymurtazamemon
-
@LouisHatte Thanks for your suggestion but if anyone still getting the error then set solc to 0.8.7-fixed version and solidity to ^0.8.7 version |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, before I used solidity version
^0.8.18
and solc version in my package.json was^0.8.20
.Downgrading my solidity version to
^0.8.7
and solc version to^0.8.8
solved my issue.