Skip to content

Commit

Permalink
add Ownable dependency to CrucibleFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
itirabasso committed Mar 2, 2022
1 parent 01c7f6f commit 7eff26a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/crucible/CrucibleFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pragma solidity 0.7.6;

import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";

import {IFactory} from "../factory/IFactory.sol";
import {IInstanceRegistry} from "../factory/InstanceRegistry.sol";
Expand All @@ -10,10 +11,10 @@ import {ProxyFactory} from "../factory/ProxyFactory.sol";
import {IUniversalVault} from "./Crucible.sol";

/// @title CrucibleFactory
contract CrucibleFactory is IFactory, IInstanceRegistry, ERC721 {
contract CrucibleFactory is Ownable, IFactory, IInstanceRegistry, ERC721 {
address private immutable _template;

constructor(address template) ERC721("Alchemist Crucible v1", "CRUCIBLE-V1") {
constructor(address template) ERC721("Alchemist Crucible v1", "CRUCIBLE-V1") Ownable() {
require(template != address(0), "CrucibleFactory: invalid template");
_template = template;
}
Expand Down

0 comments on commit 7eff26a

Please sign in to comment.