From 027d2349fe8ae1bdcd5e1576e26e6ad42f959723 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Sat, 21 Feb 2026 22:47:47 +0200 Subject: [PATCH] feat: add getForkedChainIds getter to Config contract --- src/Config.sol | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Config.sol b/src/Config.sol index 3d35bb58..a4ec06e5 100644 --- a/src/Config.sol +++ b/src/Config.sol @@ -18,6 +18,14 @@ abstract contract Config is CommonBase { /// @dev A mapping from a chain ID to its initialized fork ID. mapping(uint256 => uint256) internal forkOf; + // -- GETTER FUNCTIONS ----------------------------------------------------- + + /// @notice Returns the chain IDs for which forks have been created. + /// @dev Only populated after calling `_loadConfigAndForks`. + function getForkedChainIds() public view returns (uint256[] memory) { + return chainIds; + } + // -- HELPER FUNCTIONS ----------------------------------------------------- /// @notice Loads configuration from a file.