
22

BSC验证带构造函数的合约源代码不通过
source link: https://learnblockchain.cn/question/2123
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

BSC验证带构造函数的合约源代码不通过 | 登链社区 | 技术问答
BSC验证带构造函数的合约源代码不通过
发布的合约源代码在REMIX上没有报错也发布成功了。
拿着源代码在BSC上提交验证源代码老是提示如下错误:
Error! Unable to generate Contract ByteCode and ABI (Expected library(ies) but one or more was not provided)
有大神知道怎么解决吗?
最佳答案 1天前
你的合约包含的第三方的库,对吧, 你把引入的代码复制,替换掉对应的 import 位置。
是单个safecoin.sol 合约源代码 包含了 Address , safecoin , Context , IERC20 , IUniswapV2Factory , IUniswapV2Pair , IUniswapV2Router01 , IUniswapV2Router02 , Ownable , ReentrancyGuard , SafeMath , Utils 这些代码在里面。需要拆分出来吗?
Tiny熊
- 布道者
擅长:智能合约,以太坊 | 采纳率 41% | 回答于 2天前
其它 2 个回答
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK