Search⌘ K

Comments in Solidity

Explore how to write comments in Solidity to make your smart contract code clearer and more maintainable. Understand different comment types and learn to specify a license identifier to define usage rights of your smart contract's source code, preparing you to deploy with proper licensing compliance.

We'll cover the following...

In this very short lesson, we'll cover how to use comments in Solidity and a special comment type called code license identifier.

Comments

As in other programming languages, we can write comments in Solidity. Solidity supports two types of comments: a single-line comment and a multi-line comment. ...