deployment - 什么可能导致在 BSC 主网上启动错误,在测试网上成功?
问题描述
当我试图解决问题并重新启动时,该过程已经足够长到可以吐出一些这种错误,并在“无效的 BigNumber 字符串”上有一个初始标志:
Now its rejecting due to the abstraction which the SafeToken standard was made with, if removed it fails to compile and tells me to make abstract it.
编辑解决方案:
已经拔出了 v1Beta 位,所以当我把它放回去并将其更改为 Mainnetv2 时,它就可以工作了。
contract SafeTokenV1Beta is SafeToken{
constructor() SafeToken(Env.MainnetV2){
// pre-approve the initial liquidity supply (to safe a bit of time)
_approve(owner(),address(_router), ~uint256(0));
}
}
解决方案
推荐阅读
- .htaccess - .htaccess RewriteRule 导致 ERR_TOO_MANY_REDIRECTS 错误
- python - Beautifulsoup 中不显示数字
- python - 最合适的节点-服务器通信设计
- c# - 为什么在递归函数中调用谓词会误解参数的值
- python - SyntaxError:无效令牌python 3
- git - Git clone 显示几个目录为空;尽管在 github.com 上它们是非空的
- swift - Swift 中的字符串文字 - 换行符 \n 无法识别
- python - Numpy.split 无法使用 DataFrames 列表
- file - Julia - 如何使用 Cmd 类型打开文件?
- c++ - 抛出异常后不执行 Catch 块调试语句?