Hello, sometimes I run into the following problem on Remix, 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: " 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?

Sep 8, 2021, 9:38 AM
Clear cache and restart browser
Remix have bad localStorage management
If that doesn't work, switch http -> https
Sep 8, 2021, 9:40 AM
cool ill try it right now
it worked, thank you @grimreaper619 :)
Sep 8, 2021, 9:52 AM

© 2024 Draquery.com All rights reserved.