You can either deploy setting a variable to the contract instance via await
, or neater still, use the .then
method of the promise to chain the deployments, giving you access to the instance (and so the address) in the deployment of your second contract.
const contractOne = artifacts.require('ContractOne')
, contractTwo = artifacts.require('ContractTwo')
module.exports = deployer =>
deployer.deploy(contractOne)
.then(contOne => deployer.deploy(contractTwo, contOne.address))
And so here, contractOne
would be your mintable token contract.