Source File Layout

Learn the sections and features of a regular Solidity smart contract source file.

Coding components

We learned about Remix and its basic features by writing a simple test contract. In this lesson, we’ll go through the different sections of the code to understand the components of a Solidity file and what each one does. Let’s begin with the file below:

Get hands-on with 1200+ tech skills courses.