From 4c0e2268c74e4074f4528158665dc31721bc74d1 Mon Sep 17 00:00:00 2001 From: Andrea Santambrogio Date: Sun, 5 Dec 2021 23:43:35 +0100 Subject: [PATCH] Fix for issue #91 --- migrations/2_deploy_contracts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/migrations/2_deploy_contracts.js b/migrations/2_deploy_contracts.js index 724ae7a..542f582 100644 --- a/migrations/2_deploy_contracts.js +++ b/migrations/2_deploy_contracts.js @@ -38,7 +38,8 @@ module.exports = async (deployer, network, addresses) => { if (DEPLOY_CREATURES_SALE) { await deployer.deploy(CreatureFactory, proxyRegistryAddress, Creature.address, {gas: 7000000}); const creature = await Creature.deployed(); - await creature.transferOwnership(CreatureFactory.address); + const creatureFactory = await CreatureFactory.deployed(); + await creature.transferOwnership(creatureFactory.address); } if (DEPLOY_ACCESSORIES) { @@ -73,7 +74,7 @@ module.exports = async (deployer, network, addresses) => { const accessories = await CreatureAccessory.deployed(); const factory = await CreatureAccessoryFactory.deployed(); await accessories.transferOwnership( - CreatureAccessoryFactory.address + factory.address ); await setupCreatureAccessories.setupAccessoryLootBox(lootBox, factory); await lootBox.transferOwnership(factory.address);