I am trying to deploy the same contract code to create multiple instance:
const contract = require('truffle-contract')
var Greeter3 = artifacts.require("Greeter3");
module.exports = function(deployer) {
contract("Greeter3", async (accounts) => {
it("should be initialized twice", async () => {
let instance1 = await Greeter3.new();
let instance2 = await Greeter3.new();
assert.notEqual(instance1.address, instance2.address);
deployer.deploy(instance1);
deployer.deploy(instance2);
});
});
};
No error message is returned, but the deployment fails:
6_multi.js
==========
> Saving migration to chain.
-------------------------------------
> Total cost: 0 ETH
What does this response mean?
contract(...)
norit(...)
. You might want to read this truffle-migration tutorial first.await
ingdeployer.deploy()
?