I simply write some new extra piece of code like the following:
function setAgreement() public {
_uia[msg.sender].hash="aaa";
_uia[msg.sender].fine=82899222;
_uia[msg.sender].creator=msg.sender;
}
Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https:\/\/spdx.org for more information.
BUT... the error makes no sense. I just remove the piece of conde and the contract compiles fine again. The SPDX-Licnece-Identifier is always there. Whenever this problem is triggered the source code goes empty before I add it again (hence, triggering the error).
Looks like it's an internal error or lack of memory. Can anyone advise?
Clear cache and restart browser
Обсуждают сегодня