Skip to content

Commit

Permalink
Merge pull request #64 from axieinfinity/feature/create-fork
Browse files Browse the repository at this point in the history
fix(NetworkConfig): no returns null if there's no active fork exists
  • Loading branch information
TuDo1403 authored Jan 20, 2024
2 parents 68b8e5a + 3082953 commit 8c72842
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 8c72842

Please sign in to comment.