From bde40a0f2fa75f24895551f5fe907a852302ce0b Mon Sep 17 00:00:00 2001 From: Edmund Edgar Date: Tue, 17 Oct 2023 05:06:23 +0000 Subject: [PATCH 1/2] Expose the forkmanager() and parentContract() methods in the interface --- contracts/interfaces/IForkableStructure.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contracts/interfaces/IForkableStructure.sol b/contracts/interfaces/IForkableStructure.sol index 8134f099..d79886f0 100644 --- a/contracts/interfaces/IForkableStructure.sol +++ b/contracts/interfaces/IForkableStructure.sol @@ -3,5 +3,10 @@ pragma solidity ^0.8.20; interface IForkableStructure { + + function forkmanager() external view returns (address); + + function parentContract() external view returns (address); + function getChildren() external view returns (address, address); } From 055738bbe05744b674c7f29530d873a66aa21844 Mon Sep 17 00:00:00 2001 From: Edmund Edgar Date: Tue, 17 Oct 2023 05:35:22 +0000 Subject: [PATCH 2/2] Contract doesn't need to import itself --- contracts/mixin/ForkableStructure.sol | 1 - 1 file changed, 1 deletion(-) diff --git a/contracts/mixin/ForkableStructure.sol b/contracts/mixin/ForkableStructure.sol index a3416da3..1bd10f4f 100644 --- a/contracts/mixin/ForkableStructure.sol +++ b/contracts/mixin/ForkableStructure.sol @@ -3,7 +3,6 @@ pragma solidity ^0.8.20; import {IForkableStructure} from "../interfaces/IForkableStructure.sol"; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; -import {ForkableStructure} from "./ForkableStructure.sol"; import {CreateChildren} from "../lib/CreateChildren.sol"; contract ForkableStructure is IForkableStructure, Initializable {