Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 809 Bytes

File metadata and controls

28 lines (23 loc) · 809 Bytes

6 - Pragma

The pragma keyword is used to enable certain compiler features or checks.

A pragma directive is always local to a source file, so you have to add the pragma to all your files if you want to enable it in your whole project.

If you import another file, the pragma from that file does not automatically apply to the importing file. There are two types:

  1. Version: 1.  Compiler version 2.  ABI Coder version
  2. Experimental:
    1. SMTChecker

Slide Screenshot

006.jpg


Slide Deck

  • Pragma Keyword
  • Compiler Features/Checks
    • pragma solidity ^ 0.8.0;
  • Version: ABI Coder v1/v2
  • Experimental: SMTChecker
  • Every File, Not Imported

References