@@ -30,7 +30,8 @@ public InAppWalletOptions(
30
30
string storageDirectoryPath = null ,
31
31
IThirdwebWallet siweSigner = null ,
32
32
string legacyEncryptionKey = null ,
33
- string walletSecret = null
33
+ string walletSecret = null ,
34
+ List < string > forceSiweExternalWalletIds = null
34
35
)
35
36
: base (
36
37
email : email ,
@@ -40,7 +41,8 @@ public InAppWalletOptions(
40
41
storageDirectoryPath : storageDirectoryPath ,
41
42
siweSigner : siweSigner ,
42
43
legacyEncryptionKey : legacyEncryptionKey ,
43
- walletSecret : walletSecret
44
+ walletSecret : walletSecret ,
45
+ forceSiweExternalWalletIds : forceSiweExternalWalletIds
44
46
) { }
45
47
}
46
48
@@ -77,6 +79,9 @@ public class EcosystemWalletOptions
77
79
[ JsonProperty ( "walletSecret" ) ]
78
80
public string WalletSecret ;
79
81
82
+ [ JsonProperty ( "forceSiweExternalWalletIds" ) ]
83
+ public List < string > ForceSiweExternalWalletIds ;
84
+
80
85
public EcosystemWalletOptions (
81
86
string ecosystemId = null ,
82
87
string ecosystemPartnerId = null ,
@@ -87,7 +92,8 @@ public EcosystemWalletOptions(
87
92
string storageDirectoryPath = null ,
88
93
IThirdwebWallet siweSigner = null ,
89
94
string legacyEncryptionKey = null ,
90
- string walletSecret = null
95
+ string walletSecret = null ,
96
+ List < string > forceSiweExternalWalletIds = null
91
97
)
92
98
{
93
99
EcosystemId = ecosystemId ;
@@ -100,6 +106,7 @@ public EcosystemWalletOptions(
100
106
SiweSigner = siweSigner ;
101
107
LegacyEncryptionKey = legacyEncryptionKey ;
102
108
WalletSecret = walletSecret ;
109
+ ForceSiweExternalWalletIds = forceSiweExternalWalletIds ;
103
110
}
104
111
}
105
112
@@ -215,9 +222,6 @@ public abstract class ThirdwebManagerBase : MonoBehaviour
215
222
[ field: SerializeField ]
216
223
protected List < RpcOverride > RpcOverrides { get ; set ; } = null ;
217
224
218
- [ field: SerializeField ]
219
- protected List < string > SiweExternalForcedWalletIds { get ; set ; } = null ;
220
-
221
225
public ThirdwebClient Client { get ; protected set ; }
222
226
public IThirdwebWallet ActiveWallet { get ; protected set ; }
223
227
public bool Initialized { get ; protected set ; }
@@ -444,7 +448,9 @@ public virtual async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOpt
444
448
_ = await inAppWallet . LoginWithSiweExternal (
445
449
isMobile : Application . isMobilePlatform ,
446
450
browserOpenAction : ( url ) => Application . OpenURL ( url ) ,
447
- forceWalletIds : SiweExternalForcedWalletIds == null || SiweExternalForcedWalletIds . Count == 0 ? null : SiweExternalForcedWalletIds ,
451
+ forceWalletIds : walletOptions . InAppWalletOptions . ForceSiweExternalWalletIds == null || walletOptions . InAppWalletOptions . ForceSiweExternalWalletIds . Count == 0
452
+ ? null
453
+ : walletOptions . InAppWalletOptions . ForceSiweExternalWalletIds ,
448
454
mobileRedirectScheme : MobileRedirectScheme ,
449
455
browser : new CrossPlatformUnityBrowser ( RedirectPageHtmlOverride )
450
456
) ;
@@ -491,7 +497,9 @@ public virtual async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOpt
491
497
_ = await ecosystemWallet . LoginWithSiweExternal (
492
498
isMobile : Application . isMobilePlatform ,
493
499
browserOpenAction : ( url ) => Application . OpenURL ( url ) ,
494
- forceWalletIds : SiweExternalForcedWalletIds == null || SiweExternalForcedWalletIds . Count == 0 ? null : SiweExternalForcedWalletIds ,
500
+ forceWalletIds : walletOptions . EcosystemWalletOptions . ForceSiweExternalWalletIds == null || walletOptions . EcosystemWalletOptions . ForceSiweExternalWalletIds . Count == 0
501
+ ? null
502
+ : walletOptions . EcosystemWalletOptions . ForceSiweExternalWalletIds ,
495
503
mobileRedirectScheme : MobileRedirectScheme ,
496
504
browser : new CrossPlatformUnityBrowser ( RedirectPageHtmlOverride )
497
505
) ;
0 commit comments