full-blockchain-solidity-course-js icon indicating copy to clipboard operation
full-blockchain-solidity-course-js copied to clipboard

MY FIRST PROGRAM HAS A WARNING MARK

Open Nifegold opened this issue 1 year ago • 3 comments

Lesson

Lesson 2

Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")

No response

Operating System

Windows

Describe the bug

Below is my code:

// SPDX-License-identifier; MIT pragma solidity 0.8.18; // The solidity version we are using contract SimpleStorage { }

Then I have this warning message:

from solidity: 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. --> SimpleStorage.sol

Pls how can i fix this warning?

Nifegold avatar Oct 31 '24 14:10 Nifegold

// SPDX-License-identifier: MIT it should be colon, not semi colon

yash15-exe avatar Nov 04 '24 11:11 yash15-exe

// SPDX-License-identifier:MIT

Just for some ease!

ansh3108 avatar Nov 12 '24 15:11 ansh3108

Lesson

Lesson 2

Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")

No response

Operating System

Windows

Describe the bug

Below is my code:

// SPDX-License-identifier; MIT pragma solidity 0.8.18; // The solidity version we are using contract SimpleStorage { }

Then I have this warning message:

from solidity: 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. --> SimpleStorage.sol

Pls how can i fix this warning?

Dustin4444 avatar Feb 26 '25 15:02 Dustin4444