1

我在 Solidity MasterChef.sol 中有合同,可以在下面的链接中看到 https://github.com/pancakeswap/pancake-farm/tree/master/contracts 我想在 Binance 智能链上使用松露部署它和问题是 MasterChef.sol 的构造函数接受 5 个参数,其中两个是合同我想知道如何将另外两个合同即 CakeToken.sol 和 SyrupBar.sol 作为 deploy_contracts.js 文件中的前两个参数.

4

1 回答 1

1

您需要预先部署其他合约,记下它们的地址并在部署 MasterChef 时传递地址。

于 2021-05-26T10:52:43.323 回答