File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Hope.Ethereum.Unity/src/Utils Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ public static class NetworkProvider
18
18
/// <param name="network"> The new active network chain. </param>
19
19
public static void SwitchNetworkChain ( Chain network )
20
20
{
21
+ if ( network != Chain . MainNet && network != Chain . Rinkeby )
22
+ network = Chain . Rinkeby ;
23
+
21
24
ActiveNetwork = network ;
22
25
}
23
26
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ public static class NetworkProvider
20
20
/// <param name="network"> The new active network chain. </param>
21
21
public static void SwitchNetworkChain ( Chain network )
22
22
{
23
+ if ( network != Chain . MainNet && network != Chain . Rinkeby )
24
+ network = Chain . Rinkeby ;
25
+
23
26
ActiveNetwork = network ;
24
27
Web3 = new Web3 ( GetNetworkChainUrl ( ) ) ;
25
28
}
You can’t perform that action at this time.
0 commit comments