I am working on Ubuntu 18.04. When I execute the “truffle migrate” command, I am getting first deploying and then replacing contract messages. Is this right? I am not sure about the code of 2_deploy_contracts.js for 2 contracts.
Somebody please guide me is my 2_deploy_contracts.js correct?
I am following the tutorial at:
The migration file 2_deploy_contracts.js is:
const Victim = artifacts.require('./Victim.sol')
const Attacker = artifacts.require('./Attacker.sol')
module.exports = function(deployer){
deployer
.deploy(Victim)
.then(() =>
deployer.deploy(Attacker, Victim.address)
)
};
Is the above code correct?
Somebody pleae guide me about the code of deployment file.