Skip to main content
Solidity Code Completion Easy +10 XP

Pragma Version

Complete the Solidity version pragma.

SolidityFill in the blank
___ solidity ^0.8.0;

Type the missing code

Show answer and explanation

Answer: pragma

The pragma directive specifies the compiler version. ^0.8.0 means 0.8.x but not 0.9.0 or higher.

Hint: What keyword starts the version declaration?

What this challenge tests

Code Completion in Solidity: pragma, basics.

Related challenges