Question : Source file requires different compiler version (current compiler is 0.8.4+commit.c7e474f2.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
Answered by : shubham-kunwar
/*Change your compiler version also add SPDX-license*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
Source : | Last Update : Sun, 29 Aug 21
Question : Source file requires different compiler version (current compiler is 0.8.16+commit.07a7930e.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
Answered by : abdellatif-anaflous
just add "^" to your version.
example :
0.8.8 ==> ^0.8.8
Source : | Last Update : Tue, 23 Aug 22