Question · Blockchain and Web3 course · Module 6: Solidity Basics
Solidity Version
Which line of code correctly declares the Solidity version in a smart contract?
Answer options
- version 0.8.0;
- pragma solidity ^0.8.0;
- solidity: 0.8.0
- use solidity 0.8.0;
You can check the correct answer by solving this task in the CodeWorlds game.