Conventions used
There are a number of text conventions used throughout this book.
Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Apart from pragma, import, and comments, we can define contracts, libraries, and interfaces at a global level."
A block of code is set as follows:
// This is a single-line comment in Solidity /* This is a multiline comment In Solidity. Use this when multiple consecutive lines Should be commented as a whole */
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
pragma solidity >=0.7.0 <0.9.0;
contract ConversionDemo {
function ConversionExplicitUINT8toUINT256() pure public returns (uint){
……
}
Any command-line input or output is written as follows:
pragma solidity >=0.7.0 <0.9.0;
Tips or important notes
Appear like this.