From f10ac937c316cf0e17de4ce3919973439859d5fa Mon Sep 17 00:00:00 2001 From: huyhuynh3103 Date: Sat, 20 Jan 2024 14:45:37 +0700 Subject: [PATCH] fix(NetworkConfig): no return NULL when no active fork exists --- script/configs/NetworkConfig.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/configs/NetworkConfig.sol b/script/configs/NetworkConfig.sol index 2628898..f0e3487 100644 --- a/script/configs/NetworkConfig.sol +++ b/script/configs/NetworkConfig.sol @@ -76,7 +76,7 @@ abstract contract NetworkConfig is INetworkConfig { currentFork = forkId; } catch { console.log(StdStyle.yellow("NetworkConfig: fork mode disabled, no active fork")); - return NULL_FORK_ID; + currentFork = NULL_FORK_ID; } if (chainId == block.chainid) return currentFork;