@@ -31,7 +31,8 @@ public InAppWalletOptions(
31
31
IThirdwebWallet siweSigner = null ,
32
32
string legacyEncryptionKey = null ,
33
33
string walletSecret = null ,
34
- List < string > forceSiweExternalWalletIds = null
34
+ List < string > forceSiweExternalWalletIds = null ,
35
+ ExecutionMode executionMode = ExecutionMode . EOA
35
36
)
36
37
: base (
37
38
email : email ,
@@ -42,7 +43,8 @@ public InAppWalletOptions(
42
43
siweSigner : siweSigner ,
43
44
legacyEncryptionKey : legacyEncryptionKey ,
44
45
walletSecret : walletSecret ,
45
- forceSiweExternalWalletIds : forceSiweExternalWalletIds
46
+ forceSiweExternalWalletIds : forceSiweExternalWalletIds ,
47
+ executionMode : executionMode
46
48
) { }
47
49
}
48
50
@@ -82,6 +84,9 @@ public class EcosystemWalletOptions
82
84
[ JsonProperty ( "forceSiweExternalWalletIds" ) ]
83
85
public List < string > ForceSiweExternalWalletIds ;
84
86
87
+ [ JsonProperty ( "executionMode" ) ]
88
+ public ExecutionMode ExecutionMode = ExecutionMode . EOA ;
89
+
85
90
public EcosystemWalletOptions (
86
91
string ecosystemId = null ,
87
92
string ecosystemPartnerId = null ,
@@ -93,7 +98,8 @@ public EcosystemWalletOptions(
93
98
IThirdwebWallet siweSigner = null ,
94
99
string legacyEncryptionKey = null ,
95
100
string walletSecret = null ,
96
- List < string > forceSiweExternalWalletIds = null
101
+ List < string > forceSiweExternalWalletIds = null ,
102
+ ExecutionMode executionMode = ExecutionMode . EOA
97
103
)
98
104
{
99
105
EcosystemId = ecosystemId ;
@@ -107,6 +113,7 @@ public EcosystemWalletOptions(
107
113
LegacyEncryptionKey = legacyEncryptionKey ;
108
114
WalletSecret = walletSecret ;
109
115
ForceSiweExternalWalletIds = forceSiweExternalWalletIds ;
116
+ ExecutionMode = executionMode ;
110
117
}
111
118
}
112
119
@@ -376,7 +383,8 @@ public virtual async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOpt
376
383
storageDirectoryPath : walletOptions . InAppWalletOptions . StorageDirectoryPath ,
377
384
siweSigner : walletOptions . InAppWalletOptions . SiweSigner ,
378
385
legacyEncryptionKey : walletOptions . InAppWalletOptions . LegacyEncryptionKey ,
379
- walletSecret : walletOptions . InAppWalletOptions . WalletSecret
386
+ walletSecret : walletOptions . InAppWalletOptions . WalletSecret ,
387
+ executionMode : walletOptions . InAppWalletOptions . ExecutionMode
380
388
) ;
381
389
break ;
382
390
@@ -399,7 +407,8 @@ public virtual async Task<IThirdwebWallet> ConnectWallet(WalletOptions walletOpt
399
407
storageDirectoryPath : walletOptions . EcosystemWalletOptions . StorageDirectoryPath ,
400
408
siweSigner : walletOptions . EcosystemWalletOptions . SiweSigner ,
401
409
legacyEncryptionKey : walletOptions . EcosystemWalletOptions . LegacyEncryptionKey ,
402
- walletSecret : walletOptions . EcosystemWalletOptions . WalletSecret
410
+ walletSecret : walletOptions . EcosystemWalletOptions . WalletSecret ,
411
+ executionMode : walletOptions . EcosystemWalletOptions . ExecutionMode
403
412
) ;
404
413
break ;
405
414
0 commit comments