Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Fix for issue #56, #91 and #146 #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions migrations/2_deploy_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down