Pragma is a keyword that is placed at the beginning of the code, along with the version of Solidity to be used.
What is it for?
· It tells the compiler how to execute the file
· It configures the compiler features and checks
The pragma directive is not global.
Within a project you have to specify in each file.
Let's see an example:
The pragma directive instructs the compiler to compile code for Solidity versions greater than or equal to 0.6.0 all the way up to 0.8.0, but not including it.
If you found it useful, please engage with the first tweet:
🔁 Retweet
👍 Like
💬 Comment
Drop a 👋 if you are interested in #Solidity and #Web3 content