首页 > 解决方案 > 什么可能导致在 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));
}
}

标签: deploymentblockchainrouterremixbinance-smart-chain

解决方案


推荐阅读