I have created a ProductFactory contract which creates instances of another Product contract. Now I change code in the Product contract which is imported into the ProductFactory and run
truffle migrate
When I create a new Product instance using ProductFactory the new Product does not reflect changes (new methods, new variables) in the Product contract. The migration file only deploys the ProductFactory like below:
var ProductFactory = artifacts.require("./ProductFactory.sol");
module.exports = function(deployer) {
deployer.deploy(ProductFactory, {gas:4555000});
};
What should I do to get the Product contract code updated? Do I need to deploy the Product contract also separately?