1

我想在币安智能链上分叉 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)
    })
  })
};
4

0 回答 0