Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MY FIRST PROGRAM HAS A WARNING MARK #6757

Open
Nifegold opened this issue Oct 31, 2024 · 2 comments
Open

MY FIRST PROGRAM HAS A WARNING MARK #6757

Nifegold opened this issue Oct 31, 2024 · 2 comments
Labels

Comments

@Nifegold
Copy link

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?

@yash15-exe
Copy link

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

@ansh3108
Copy link

// SPDX-License-identifier:MIT

Just for some ease!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants