I'm using truffle migrations a lot, and I would like to deploy a contract twice during my migrations. Is it possible? Nowadays, I'm using migrations like
const MyContract = artifacts.require('MyContract')
module.exports = deployer => {
deployer.deploy(MyContract)
}
Is there any way to do something like
const MyContract = artifacts.require('MyContract')
module.exports = deployer => {
const firstDeploy = deployer.deploy(MyContract)
const secondDeploy = deployer.deploy(MyContract)
}
And then to fetch them easily in the rest of my application?