1

recently I started doing solidity tutorial. Everything was going okay on remix but when i switched to VS Code I got compiler error

enter image description here

I changed it to:

enter image description here

but it doesnt solve the question why 0.8.8 compiler version doesn't work.

joaszek
  • 11
  • 1

1 Answers1

2

are you using a framework like hardhat or similar. if so, it's not using the compiler set in vscode, so you can ignore it. If, like me, you find it too annoying, lookup the solidity configuration settings in vscode settings. you'll have to do a little research on those settings to set them properly but you can fake the entry and it makes the errors go away.

like this. (it's not right, but stops the errors) enter image description here

sola24
  • 1,238
  • 3
  • 20