ethereum - 如何为 fork Pancakeswap 配置 deploy_contract
问题描述
我想在币安智能链上分叉 pancakeswap:
我实际上有这个合同:
Caketoken.sol
SyrupBar.sol
MasterChef.sol
Migrations.sol
Timelock.sol
如何指定 2_deploy_contract.js 来部署每个令牌?
const CakeToken = artifacts.require("CakeToken");
const SyrupBar = artifacts.require("SyrupBar");
const MasterChef = artifacts.require("MasterChefV2");
let admin = "adress 0X"
module.exports = function(deployer) {
// 1st deployment
deployer.deploy(CakeToken).then(function() {
return deployer.deploy(SyrupBar, CakeToken.address).then(function() {
return deployer.deploy(MasterChef, CakeToken.address, SyrupBar.address, admin, "1000000000000000000", 4021488)
})
})
};
解决方案
推荐阅读
- parallel-processing - 在 pytorch v-1.1 中面临错误:“RuntimeError: all tensors must be on devices[0]”
- android - 如何拍照并将结果保存到 Andrdoid 10 上的图片中?
- html - 我无法使用 iframe 访问链接
- javascript - Mongo节点js查询隐式$and
- knockout.js - Magento 2 在新地址簿结帐页面上分配 isSelected
- python-asyncio - 如何在协程中等待两个任务?
- livecycle-designer - 自动将表格移动到隐藏表格
- swift - 无法快速获取firebase动态链接
- .net - NewRelic .Net 代理减慢应用程序
- python - 在树莓派上按下按钮时运行命令不起作用