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

SPDX license identifier error #6330

Open
NaeemulHannan opened this issue Dec 9, 2023 · 4 comments
Open

SPDX license identifier error #6330

NaeemulHannan opened this issue Dec 9, 2023 · 4 comments
Labels

Comments

@NaeemulHannan
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")

https://www.youtube.com/watch?v=gyMwXuJrbJQ

Operating System

Windows

Describe the bug

As soon as i add the "SimpleStorage.sol" file, I get an error that highlights "SimpleStorage.sol" in red and says SPDX license identifier not provided in source file. I dont understand this issue

@Neet-savaliya
Copy link

You can try this !!

Add a solidity line on top of contract

// SPDX-License-Identifier: MIT

@TravCrypto
Copy link

Yes @Neet-savaliya shared the solution above.

@helalmerchan
Copy link

Paste this code on top of your solidity contract
// SPDX-License-Identifier: MIT

OR Paste this code
// SPDX-License-Identifier: UNLICENSED

@SwarnenduG07
Copy link

Paste this code on top of your solidity contract
AND DEFINE THE PRAGMA SOLIDITY VERSION
// SPDX-License-Identifier: MIT

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

5 participants