Skip to content

Commit

Permalink
fix(NetworkConfig): no return NULL when no active fork exists
Browse files Browse the repository at this point in the history
  • Loading branch information
huyhuynh3103 committed Jan 20, 2024
1 parent cf6be21 commit f10ac93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/configs/NetworkConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f10ac93

Please sign in to comment.