Warning: SPDX license identifier not provided in source file

From Solidity ^0.6.8 SPDX license is introduced. So you need to use SPDX-License-Identifier in the code. Have a look at this: https://forum.openzeppelin.com/t/solidity-0-6-8-introduces-spdx-license-identifiers/2859 For example in your code you need to use license identifier like // SPDX-License-Identifier: MIT pragma solidity ^0.7.5; contract TestContract { // Some logic } You need to use license according to your … Read more

Data location must be “memory” for return parameter in function, but none was given

You should add memory keyword for string parameter, which was introduced in solidity version 0.5.0 As per the documentation: Explicit data location for all variables of struct, array or mapping types is now mandatory. This is also applied to function parameters and return variables. For example, change uint[] x = m_x to uint[] storage x … Read more

What is address(0) in Solidity

Within an Ethereum transaction, the zero-account is just a special case used to indicate that a new contract is being deployed. It is literally ‘0x0’ set to the to field in the raw transaction. Every Ethereum transaction, whether it’s a transfer between two external accounts, a request to execute contract code, or a request to … Read more

In Ethereum Solidity, what is the purpose of the “memory” keyword?

Without the memory keyword, Solidity tries to declare variables in storage. Lead Solidity dev chriseth: “You can think of storage as a large array that has a virtual structure… a structure you cannot change at runtime – it is determined by the state variables in your contract”. That is, the structure of storage is set … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)