File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Assets/Plugins/Web3AuthSDK/Types Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,20 @@ public string walletSdkUrl {
40
40
public ChainConfig ? chainConfig { get ; set ; }
41
41
public Dictionary < string , string > originData { get ; set ; } = null ;
42
42
43
- public string dashboardUrl {
44
- get {
45
- if ( buildEnv == Web3Auth . BuildEnv . STAGING )
46
- return "https://staging-account.web3auth.io/v9/wallet/account" ;
47
- else if ( buildEnv == Web3Auth . BuildEnv . TESTING )
48
- return "https://develop-account.web3auth.io/wallet/account" ;
49
- else
50
- return "https://account.web3auth.io/v9/wallet/account" ;
43
+ public string dashboardUrl
44
+ {
45
+ get
46
+ {
47
+ return buildEnv switch
48
+ {
49
+ Web3Auth . BuildEnv . STAGING => $ "https://staging-account.web3auth.io/{ authDashboardVersion } /{ walletAccountConstant } ",
50
+ Web3Auth . BuildEnv . TESTING => $ "https://develop-account.web3auth.io/{ walletAccountConstant } ",
51
+ _ => $ "https://account.web3auth.io/{ authDashboardVersion } /{ walletAccountConstant } "
52
+ } ;
51
53
}
52
54
set { }
53
55
}
56
+
57
+ private const string authDashboardVersion = "v9" ;
58
+ private const string walletAccountConstant = "wallet/account" ;
54
59
}
You can’t perform that action at this time.
0 commit comments