15 在REMIX编译发布合约如何使用spdx版权保护

现在在REMIX编译发布合约,都提示要求spdx license, 弄了半天也没搞明白怎么弄,我拷贝来的合约代码进行修改后始终无法编译,提示

xxx.sol: 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.

按照这个警告提示加上了comment也编译和部署不了 恳请指导!

请先 登录 后评论

3 个回答

Tiny熊
  擅长:智能合约,以太坊
请先 登录 后评论
carvin
请先 登录 后评论
carvin
请先 登录 后评论
  • 2 关注
  • 0 收藏,2668 浏览
  • carvin 提出于 2021-08-09 09:59