LOGBOOK

HELP

Quiz Entry - updated: 2026.07.30

What is a pragma (in Solidity)?

A directive, written pragma solidity <version>, that declares which compiler version(s) may build the file.

Because Solidity changes fast, every contract must state the compiler it expects. A caret (^0.8.8) accepts newer patches within the same minor line but stops before a breaking 0.9.0; a bare version pins exactly.

From Quiz: IOTHACK / IOTHACK Glossary | Updated: Jul 30, 2026