weixin_42208695 2021-12-01 15:05 采纳率: 0%
浏览 306
已结题

BSC链合约想开源,提交代码文件的时候遇到这个问题,有懂得吗

Compiler debug log:
Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])
For troubleshooting, you can try compiling your source code with the Remix - Solidity IDE and check for exceptions

Compiler Warning(s):

ParserError: Source "extensions/IERC20Metadata.sol" not found: File import callback not supported
--> ERC20.sol:6:1:
|
6 | import "./extensions/IERC20Metadata.sol"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ParserError: Source "utils/Context.sol" not found: File import callback not supported
--> ERC20.sol:7:1:
|
7 | import "../../utils/Context.sol"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ParserError: Source "utils/Context.sol" not found: File import callback not supported
--> Ownable.sol:5:1:
|
5 | import "../utils/Context.sol"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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.
--> token.sol

ParserError: Source "@openzeppelin/contracts/token/ERC20/ERC20.sol" not found: File import callback not supported
--> token.sol:3:1:
|
3 | import "@openzeppelin/contracts/token/ERC20/ERC20.sol"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ParserError: Source "@openzeppelin/contracts/access/Ownable.sol" not found: File import callback not supported
--> token.sol:4:1:
|
4 | import '@openzeppelin/contracts/access/Ownable.sol'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • 写回答

3条回答 默认 最新

  • 申龙斌 2021-12-02 19:24
    关注

    你的solidity代码呢?

    评论

报告相同问题?

问题事件

  • 系统已结题 12月9日
  • 创建了问题 12月1日

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办