diff --git a/Packages/io.chainsafe.web3-unity/Editor/ServerSettings.cs b/Packages/io.chainsafe.web3-unity/Editor/ServerSettings.cs index 77f1c7956..b0094ab12 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/ServerSettings.cs +++ b/Packages/io.chainsafe.web3-unity/Editor/ServerSettings.cs @@ -126,8 +126,8 @@ public void UpdateServerMenuInfo(bool chainSwitched = false) } else { - // Handle the case where the selected chain is not found - Debug.LogError("Selected chain not found in the chainList."); + Debug.LogError("Couldn't find the chain, switching to default chain"); + selectedChainIndex = Array.FindIndex(chainList.ToArray(), x => x.name == "Sepolia"); } }